mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a assertion message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e49820a827
commit
f909b891ba
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue