From fc5a26c2d41fade0771217e5b8ba257249db5251 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 7 Jan 2008 22:57:00 +0000 Subject: * string.c (rb_str_buf_append): fix append itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_string.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 524ab47051..647c520707 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -170,6 +170,12 @@ class TestString < Test::Unit::TestCase def test_LSHIFT # '<<' assert_equal(S("world!"), S("world") << 33) assert_equal(S("world!"), S("world") << S('!')) + + s = "a" + 10.times {|i| + s << s + assert_equal("a" * (2<