diff options
Diffstat (limited to 'test/t/argumenterror.rb')
| -rw-r--r-- | test/t/argumenterror.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/t/argumenterror.rb b/test/t/argumenterror.rb new file mode 100644 index 000000000..ca998f8de --- /dev/null +++ b/test/t/argumenterror.rb @@ -0,0 +1,15 @@ +## +# ArgumentError ISO Test + +assert('ArgumentError', '15.2.24') do + e2 = nil + a = [] + begin + # this will cause an exception due to the wrong arguments + a[] + rescue => e1 + e2 = e1 + end + + ArgumentError.class == Class and e2.class == ArgumentError +end |
