summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-05-20 11:22:49 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-05-20 11:22:49 +0900
commitb0477f1d3f07e8f84c9ef4980f54071e58c64685 (patch)
tree260fb09e3a1e1b284a5ff4d40600cc5af045f342 /test
parentc4268f67d052aa55f9cce3307d846285f1e6519b (diff)
parentf55851cb748f892cf94743d542c27a47023f583e (diff)
downloadmruby-b0477f1d3f07e8f84c9ef4980f54071e58c64685.tar.gz
mruby-b0477f1d3f07e8f84c9ef4980f54071e58c64685.zip
Merge branch 'add-exception-test' of https://github.com/yui-knk/mruby into yui-knk-add-exception-test
Diffstat (limited to 'test')
-rw-r--r--test/t/exception.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index 186ac2892..816c3241b 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -375,3 +375,13 @@ assert('Raise in ensure') do
end
end
+
+assert('Raise in rescue') do
+ assert_raise(ArgumentError) do
+ begin
+ raise "" # StandardError
+ rescue
+ raise ArgumentError
+ end
+ end
+end