From b825c539987ab8500c260e3fb5cfdac75f922bef Mon Sep 17 00:00:00 2001 From: Daniel Bovensiepen Date: Fri, 14 Jun 2013 22:17:03 +0800 Subject: Improve LocalJumpError Tests --- test/t/localjumperror.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/t/localjumperror.rb b/test/t/localjumperror.rb index ebcec0670..857b0ce65 100644 --- a/test/t/localjumperror.rb +++ b/test/t/localjumperror.rb @@ -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 -- cgit v1.2.3