diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-10-20 03:59:13 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-10-20 03:59:13 +0900 |
| commit | 89a18e4f22de80b836f9d6c3167d71b7078a31bb (patch) | |
| tree | e16221399143312f3974d48d269c9bcc300195ce /test/t/localjumperror.rb | |
| parent | 9bb6f0b3314d438e93ec79ae763ac57a559284bc (diff) | |
| download | mruby-89a18e4f22de80b836f9d6c3167d71b7078a31bb.tar.gz mruby-89a18e4f22de80b836f9d6c3167d71b7078a31bb.zip | |
unexpect break/next/redo/retry should raise LocalJumpError
Diffstat (limited to 'test/t/localjumperror.rb')
| -rw-r--r-- | test/t/localjumperror.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/t/localjumperror.rb b/test/t/localjumperror.rb index 9d1df9594..ebcec0670 100644 --- a/test/t/localjumperror.rb +++ b/test/t/localjumperror.rb @@ -2,7 +2,12 @@ # LocalJumpError ISO Test assert('LocalJumoError', '15.2.25') do - LocalJumpError.class == Class + 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 |
