diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 07:14:56 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 07:14:56 +0000 |
commit | 55c141c6247a4d8c052c0d57f59ddaa29e3e523a (patch) | |
tree | a7703ac9a54dd8ac5f9d44d0806c1c216d507c84 /test/ruby/test_mixed_unicode_escapes.rb | |
parent | 090004886d24023af8fa32e3fe589340b31eb72c (diff) |
* test/ruby/test_m17n.rb: follow EncodingCompatibilityError.
* test/ruby/test_mixed_unicode_escapes.rb: ditto.
* test/ruby/enc/test_utf16.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_mixed_unicode_escapes.rb')
-rw-r--r-- | test/ruby/test_mixed_unicode_escapes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_mixed_unicode_escapes.rb b/test/ruby/test_mixed_unicode_escapes.rb index e80e6fb14e..f274ae7090 100644 --- a/test/ruby/test_mixed_unicode_escapes.rb +++ b/test/ruby/test_mixed_unicode_escapes.rb @@ -18,8 +18,8 @@ class TestMixedUnicodeEscape < Test::Unit::TestCase # String interpolation turns into an expression and we get # a different kind of error, but we still can't mix these - assert_raise(ArgumentError) { eval %q("\u{1234}#{nil}")} - assert_raise(ArgumentError) { eval %q("#{nil}\u1234")} + assert_raise(EncodingCompatibilityError) { eval %q("\u{1234}#{nil}")} + assert_raise(EncodingCompatibilityError) { eval %q("#{nil}\u1234")} end end |