diff options
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_string.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index b6c6214364..ed95d8013d 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -620,6 +620,11 @@ CODE assert_raise(RuntimeError) { 'foo'.freeze.concat('bar') } end + def test_concat_literals + s="." * 50 + assert_equal(Encoding::UTF_8, "#{s}x".encoding) + end + def test_count a = S("hello world") assert_equal(5, a.count(S("lo"))) |
