mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add more test for exception.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user