summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_exception.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 5ca54ecbe1..c49de80113 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -180,6 +180,16 @@ class TestException < Test::Unit::TestCase
}
end
+ def test_throw_false
+ bug12743 = '[ruby-core:77229] [Bug #12743]'
+ 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
begin
assert(true)