* test/ruby/test_m17n_comb.rb (TestM17NComb#test_str_scan):
assert_raise does not check exception message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9c560af1b7
commit
c750f945c6
@ -1095,7 +1095,7 @@ class TestM17NComb < Test::Unit::TestCase
|
|||||||
if s1.valid_encoding?
|
if s1.valid_encoding?
|
||||||
assert_raise(Encoding::CompatibilityError) { s1.scan(s2) }
|
assert_raise(Encoding::CompatibilityError) { s1.scan(s2) }
|
||||||
else
|
else
|
||||||
assert_raise(ArgumentError, /invalid byte sequence/) { s1.scan(s2) }
|
assert_match(/invalid byte sequence/, assert_raise(ArgumentError) { s1.scan(s2) }.message)
|
||||||
end
|
end
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user