Fix typos in assert messages [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f02f13c78b
commit
b550034c8b
@ -140,7 +140,7 @@ class TestException < Test::Unit::TestCase
|
|||||||
throw :foo, true
|
throw :foo, true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
assert(false, "should no reach here")
|
assert(false, "should not reach here")
|
||||||
end
|
end
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
@ -151,7 +151,7 @@ class TestException < Test::Unit::TestCase
|
|||||||
assert_nothing_raised(ArgumentError) {
|
assert_nothing_raised(ArgumentError) {
|
||||||
result = catch {|obj|
|
result = catch {|obj|
|
||||||
throw obj, :ok
|
throw obj, :ok
|
||||||
assert(false, "should no reach here")
|
assert(false, "should not reach here")
|
||||||
}
|
}
|
||||||
assert_equal(:ok, result)
|
assert_equal(:ok, result)
|
||||||
}
|
}
|
||||||
@ -161,9 +161,9 @@ class TestException < Test::Unit::TestCase
|
|||||||
assert_raise_with_message(ArgumentError, /uncaught throw/) {
|
assert_raise_with_message(ArgumentError, /uncaught throw/) {
|
||||||
catch("foo") {|obj|
|
catch("foo") {|obj|
|
||||||
throw obj.dup, :ok
|
throw obj.dup, :ok
|
||||||
assert(false, "should no reach here")
|
assert(false, "should not reach here")
|
||||||
}
|
}
|
||||||
assert(false, "should no reach here")
|
assert(false, "should not reach here")
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user