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 | 7b91d83d481ec39841277b7a5dcf959c9be951d2 (patch) | |
| tree | 6effaf47ad78981352ac3f6fd28ff815c9008f43 /test/ruby | |
| parent | d829910518ca070ef321220ef14148e918d61879 (diff) | |
| download | ruby-7b91d83d481ec39841277b7a5dcf959c9be951d2.tar.gz ruby-7b91d83d481ec39841277b7a5dcf959c9be951d2.tar.xz ruby-7b91d83d481ec39841277b7a5dcf959c9be951d2.zip | |
add a assertion message.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -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 10be0433f..4e4e91e12 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 |
