Commit efa18038 authored by Masamitsu MURASE's avatar Masamitsu MURASE

Add more tests for `begin` and `rescue`.

parent c6d2cde1
......@@ -287,6 +287,34 @@ assert('Exception 16') do
end
end
assert('Exception 17') do
begin
raise "a" # StandardError
rescue ArgumentError
1
rescue StandardError
2
else
3
ensure
4
end == 2
end
assert('Exception 18') do
begin
0
rescue ArgumentError
1
rescue StandardError
2
else
3
ensure
4
end == 3
end
assert('Exception#inspect without message') do
Exception.new.inspect
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment