summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMasamitsu MURASE <[email protected]>2012-08-13 01:57:00 +0900
committerMasamitsu MURASE <[email protected]>2012-08-13 01:57:00 +0900
commit686b6eb629d1694b620d9e36b7329efd7754b8c3 (patch)
treea3e1df38042eae7bfe52407516d58f5bd145aeb8 /test
parent87ba67f42d36ca001298644c2e4f2f3a26d5c40b (diff)
downloadmruby-686b6eb629d1694b620d9e36b7329efd7754b8c3.tar.gz
mruby-686b6eb629d1694b620d9e36b7329efd7754b8c3.zip
Add more test for exception.
Diffstat (limited to 'test')
-rw-r--r--test/t/exception.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index 0aed0e2e6..2ea319caa 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -253,3 +253,19 @@ assert('Exception 13') do
end
a == :ok
end
+
+def exception_test14
+ UnknownConstant
+end
+
+assert('Exception 14') do
+ a = :ng
+ begin
+ send(:exception_test14)
+ rescue
+ a = :ok
+ end
+
+ a == :ok
+end
+