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:
parent
c296853be9
commit
e3604a9e46
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue