diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_utf16.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_utf16.rb b/test/ruby/test_utf16.rb index bb44432846..3ffc8b86ec 100644 --- a/test/ruby/test_utf16.rb +++ b/test/ruby/test_utf16.rb @@ -65,4 +65,11 @@ class TestUTF16 < Test::Unit::TestCase Encoding.find("utf-8".force_encoding("utf-16be")) } end + + def test_interpolation + s = "aa".force_encoding("utf-16be") + assert_raise(ArgumentError, "\"a\#{#{encdump s}}\"") { + "a#{s}" + } + end end |