summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-26 07:33:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-26 07:33:16 +0000
commit91a32fc030d6b74d5b43cabe48f29ebf1eec3331 (patch)
tree6790b52f87a521b954e07d9600ddda925f26fdeb /test
parente6e66094f983021a2de3241cc7d6f6f14ed11711 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_exception.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 4da3de165b..208c5ecfc0 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -183,11 +183,12 @@ class TestException < Test::Unit::TestCase
def test_throw_false
bug12743 = '[ruby-core:77229] [Bug #12743]'
- assert_raise_with_message(UncaughtThrowError, /false/, bug12743) {
+ e = assert_raise_with_message(UncaughtThrowError, /false/, bug12743) {
Thread.start {
throw false
}.join
}
+ assert_same(false, e.tag, bug12743)
end
def test_else_no_exception