Commit ea93ac13 authored by Masaki Muranaka's avatar Masaki Muranaka

Add test for NameError#name

parent edd0a621
......@@ -9,7 +9,19 @@ assert('NameError superclass', '15.2.31.2') do
NameError.superclass == StandardError
end
# TODO 15.2.31.2.1 NameError#name
assert('NameError#name', '15.2.31.2.1') do
# This check is not duplicate with 15.2.31.2.2 check.
# Because the NameError in this test is generated in
# C API.
class TestDummy
alias foo bar
rescue NameError => e
$test_dummy_result = e.name
end
$test_dummy_result == :bar
end
assert('NameError#initialize', '15.2.31.2.2') do
e = NameError.new.initialize('a')
......
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