diff options
| author | Daniel Bovensiepen <[email protected]> | 2013-06-14 22:17:03 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2013-06-14 22:17:03 +0800 |
| commit | b825c539987ab8500c260e3fb5cfdac75f922bef (patch) | |
| tree | 5afac43cb09ad81ae142434cc3ca5b7b7bb9869e | |
| parent | 67af374e37699d515d4e43920a7b1db5f19420ad (diff) | |
| download | mruby-b825c539987ab8500c260e3fb5cfdac75f922bef.tar.gz mruby-b825c539987ab8500c260e3fb5cfdac75f922bef.zip | |
Improve LocalJumpError Tests
| -rw-r--r-- | test/t/localjumperror.rb | 7 |
1 files changed, 3 insertions, 4 deletions
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 |
