diff options
Diffstat (limited to 'test/ruby/test_mixed_unicode_escapes.rb')
| -rw-r--r-- | test/ruby/test_mixed_unicode_escapes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_mixed_unicode_escapes.rb b/test/ruby/test_mixed_unicode_escapes.rb index f0b4cc691f..a30b5c19f5 100644 --- a/test/ruby/test_mixed_unicode_escapes.rb +++ b/test/ruby/test_mixed_unicode_escapes.rb @@ -18,12 +18,12 @@ class TestMixedUnicodeEscape < Test::Unit::TestCase assert_raise(SyntaxError) { eval %q("\u{1234}")} # also should not work for Regexp - assert_raise(SyntaxError) { eval %q(/#{"\u1234"}#{""}/)} assert_raise(RegexpError) { eval %q(/\u{1234}#{nil}/)} assert_raise(RegexpError) { eval %q(/#{nil}\u1234/)} # String interpolation turns into an expression and we get # a different kind of error, but we still can't mix these + assert_raise(Encoding::CompatibilityError) { eval %q(/#{"\u1234"}#{""}/)} assert_raise(Encoding::CompatibilityError) { eval %q("\u{1234}#{nil}")} assert_raise(Encoding::CompatibilityError) { eval %q("#{nil}\u1234")} end |
