mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_exception.rb: another assertion
* test/ruby/test_exception.rb (test_throw_false): test the thrown tag. [Bug #12743] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e6e66094f9
commit
91a32fc030
1 changed files with 2 additions and 1 deletions
|
@ -183,11 +183,12 @@ class TestException < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_throw_false
|
def test_throw_false
|
||||||
bug12743 = '[ruby-core:77229] [Bug #12743]'
|
bug12743 = '[ruby-core:77229] [Bug #12743]'
|
||||||
assert_raise_with_message(UncaughtThrowError, /false/, bug12743) {
|
e = assert_raise_with_message(UncaughtThrowError, /false/, bug12743) {
|
||||||
Thread.start {
|
Thread.start {
|
||||||
throw false
|
throw false
|
||||||
}.join
|
}.join
|
||||||
}
|
}
|
||||||
|
assert_same(false, e.tag, bug12743)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_else_no_exception
|
def test_else_no_exception
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue