diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-20 01:30:32 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-20 01:30:32 +0000 |
commit | f909b891ba459ccecd2c6934154e605a115cefdc (patch) | |
tree | 6effaf47ad78981352ac3f6fd28ff815c9008f43 | |
parent | e49820a827a6c495fcaf19fc7398316409fd1953 (diff) | |
download | ruby-f909b891ba459ccecd2c6934154e605a115cefdc.tar.gz |
add a assertion message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_m17n.rb | 4 |
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 |