aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_exception.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r--test/ruby/test_exception.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 03c0c819f5..2b8a378734 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -181,6 +181,15 @@ class TestException < Test::Unit::TestCase
}
end
+ def test_throw_false
+ bug12743 = '[ruby-core:77229] [Bug #12743]'
+ assert_raise_with_message(UncaughtThrowError, /false/, bug12743) {
+ Thread.start {
+ throw false
+ }.join
+ }
+ end
+
def test_else_no_exception
begin
assert(true)