1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-01-23 08:14:30 +00:00
parent c296853be9
commit e3604a9e46

View file

@ -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