зеркало из https://github.com/github/ruby.git
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:
Родитель
f02f13c78b
Коммит
b550034c8b
|
@ -140,7 +140,7 @@ class TestException < Test::Unit::TestCase
|
|||
throw :foo, true
|
||||
break
|
||||
end
|
||||
assert(false, "should no reach here")
|
||||
assert(false, "should not reach here")
|
||||
end
|
||||
false
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ class TestException < Test::Unit::TestCase
|
|||
assert_nothing_raised(ArgumentError) {
|
||||
result = catch {|obj|
|
||||
throw obj, :ok
|
||||
assert(false, "should no reach here")
|
||||
assert(false, "should not reach here")
|
||||
}
|
||||
assert_equal(:ok, result)
|
||||
}
|
||||
|
@ -161,9 +161,9 @@ class TestException < Test::Unit::TestCase
|
|||
assert_raise_with_message(ArgumentError, /uncaught throw/) {
|
||||
catch("foo") {|obj|
|
||||
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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче