diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-05-25 14:01:14 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-05-25 14:01:14 +0800 |
| commit | 150b235fb650f15277e99080bc639bc4b60e08ba (patch) | |
| tree | 12f76d18a191c41d2e9f6098e673a6d080032cde /test/t/runtimeerror.rb | |
| parent | d9227aa41d8e626e7ff706f2d8cb94fea08658a9 (diff) | |
| download | mruby-150b235fb650f15277e99080bc639bc4b60e08ba.tar.gz mruby-150b235fb650f15277e99080bc639bc4b60e08ba.zip | |
Add Tests for all Exception classes, for false, true, Proc, Module, nil and Object
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 + |
