mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
17 lines
286 B
Ruby
17 lines
286 B
Ruby
##
|
|
# 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
|
|
|
|
assert_equal(Class, ArgumentError.class)
|
|
assert_equal(ArgumentError, e2.class)
|
|
end
|