diff options
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r-- | test/ruby/test_string.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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<<i), s) + } end def test_MATCH # '=~' |