aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/enc/test_utf16.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/enc/test_utf16.rb')
-rw-r--r--test/ruby/enc/test_utf16.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/enc/test_utf16.rb b/test/ruby/enc/test_utf16.rb
index c949c1e293..52850e6376 100644
--- a/test/ruby/enc/test_utf16.rb
+++ b/test/ruby/enc/test_utf16.rb
@@ -270,7 +270,7 @@ EOT
end
def test_regexp_match
- assert_raise(ArgumentError) { Regexp.new("aa".force_encoding("utf-16be")) =~ "aa" }
+ assert_raise(Encoding::CompatibilityError) { Regexp.new("aa".force_encoding("utf-16be")) =~ "aa" }
end
def test_gsub