diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-25 00:45:25 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-25 00:45:25 -0700 |
| commit | f4f69489610014f92b8885640360035e202e2537 (patch) | |
| tree | a99f8d0d2b82f0bd77e38d7936d9b1e2636360d5 /test/t/runtimeerror.rb | |
| parent | ea9bb1e38ffeec1ca3487031b5957d1f48c3f5ad (diff) | |
| parent | 150b235fb650f15277e99080bc639bc4b60e08ba (diff) | |
| download | mruby-f4f69489610014f92b8885640360035e202e2537.tar.gz mruby-f4f69489610014f92b8885640360035e202e2537.zip | |
Merge pull request #194 from bovi/add-more-tests
Add Tests for all Exception classes, for false, true, Proc, Module, nil ...
Diffstat (limited to 'test/t/runtimeerror.rb')
| -rw-r--r-- | test/t/runtimeerror.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/t/runtimeerror.rb b/test/t/runtimeerror.rb new file mode 100644 index 000000000..b410dd64f --- /dev/null +++ b/test/t/runtimeerror.rb @@ -0,0 +1,15 @@ +## +# RuntimeError ISO Test + +assert('RuntimeError', '15.2.28') do + e2 = nil + begin + # this will cause an exception due to the wrong location + retry + rescue => e1 + e2 = e1 + end + + RuntimeError.class == Class and e2.class == RuntimeError +end + |
