summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_m17n.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index 10be0433f0..4e4e91e12c 100644
--- a/test/ruby/test_m17n.rb
+++ b/test/ruby/test_m17n.rb
@@ -843,7 +843,9 @@ class TestM17N < Test::Unit::TestCase
end
def test_end_with
- assert_equal(false, "\x81\x40".force_encoding("sjis").end_with?("@"))
+ s1 = "\x81\x40".force_encoding("sjis")
+ s2 = "@"
+ assert_equal(false, s1.end_with?(s2), "#{encdump s1}.end_with?(#{encdump s2})")
end
def test_regexp_match