ripper: assertions for rescue/ensure in method body
This commit is contained in:
parent
e9974a466a
commit
050bb06e66
Notes:
git
2021-05-21 18:28:47 +09:00
@ -660,6 +660,8 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
|
||||
}
|
||||
assert_equal true, thru_def
|
||||
assert_equal '[def(foo,[],bodystmt([void()]))]', parse('def foo ;end')
|
||||
assert_equal '[def(foo,[],bodystmt([void()],rescue(,,[void()])))]', parse('def foo ;rescue; end')
|
||||
assert_equal '[def(foo,[],bodystmt([void()],,,ensure([void()])))]', parse('def foo ;ensure; end')
|
||||
end
|
||||
|
||||
def test_endless_def
|
||||
|
Loading…
x
Reference in New Issue
Block a user