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 | a8821182f6f47f451afc330c9d48c4d85825c0b3 (patch) | |
| tree | a7703ac9a54dd8ac5f9d44d0806c1c216d507c84 /test/ruby/test_mixed_unicode_escapes.rb | |
| parent | 58a1fa01277e292dfb72c56a0641b342046930a2 (diff) | |
| download | ruby-a8821182f6f47f451afc330c9d48c4d85825c0b3.tar.gz ruby-a8821182f6f47f451afc330c9d48c4d85825c0b3.tar.xz ruby-a8821182f6f47f451afc330c9d48c4d85825c0b3.zip | |
* 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: http://svn.ruby-lang.org/repos/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 e80e6fb14..f274ae709 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 |
