Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jun 26, 2023
1 parent 5d23594 commit 759a03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/string/shared/byte_index_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
re = Regexp.new "れ".encode(Encoding::EUC_JP)
-> do
"あれ".send(@method, re)
end.should raise_error(Encoding::CompatibilityError, "incompatible character encodings: UTF-8 and EUC-JP")
end.should raise_error(Encoding::CompatibilityError, "incompatible encoding regexp match (EUC-JP regexp with UTF-8 string)")
end
end

Expand Down

0 comments on commit 759a03e

Please sign in to comment.