diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_utf16.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_utf16.rb b/test/ruby/test_utf16.rb index 474e7e8acc..7521242e3a 100644 --- a/test/ruby/test_utf16.rb +++ b/test/ruby/test_utf16.rb @@ -103,4 +103,12 @@ class TestUTF16 < Test::Unit::TestCase def test_slice! enccall("aa".force_encoding("UTF-16BE"), :slice!, -1) end + + def test_concat + s1 = "" + s2 = "aa".force_encoding("utf-16be") + assert_raise(ArgumentError, "#{encdump s1} << #{encdump s2}") { + s1 << s2 + } + end end |