Files
mruby-mruby/test/t/localjumperror.rb
T
2012-10-20 03:59:13 +09:00

15 lines
323 B
Ruby

##
# LocalJumpError ISO Test
assert('LocalJumoError', '15.2.25') do
begin
# this will cause an exception due to the wrong location
retry
rescue => e1
end
LocalJumpError.class == Class and e1.class == LocalJumpError
end
# TODO 15.2.25.2.1 LocalJumpError#exit_value
# TODO 15.2.25.2.2 LocalJumpError#reason