Improve LocalJumpError Tests

This commit is contained in:
Daniel Bovensiepen
2013-06-14 22:17:03 +08:00
parent 67af374e37
commit b825c53998
+3 -4
View File
@@ -1,13 +1,12 @@
##
# LocalJumpError ISO Test
assert('LocalJumoError', '15.2.25') do
begin
assert('LocalJumpError', '15.2.25') do
assert_equal LocalJumpError.class, Class
assert_raise LocalJumpError do
# 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