diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_literal.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb index e87769a6c8..52f7704940 100644 --- a/test/ruby/test_literal.rb +++ b/test/ruby/test_literal.rb @@ -59,6 +59,10 @@ class TestRubyLiteral < Test::Unit::TestCase assert_equal '16', "#{2 ** 4}" s = "string" assert_equal s, "#{s}" + a = 'Foo' + b = "#{a}" << 'Bar' + assert_equal('Foo', a, 'r3842') + assert_equal('FooBar', b, 'r3842') end def test_dsymbol |