提交 ea7c0d1f 编写于 作者: J Justin Collins

Add tests for handling `super` Sexps like `call`

上级 6cfcd260
......@@ -227,4 +227,20 @@ class SexpTests < Test::Unit::TestCase
exp.method
end
end
def test_zsuper_call
exp = parse 'super'
assert_equal :super, exp.method
assert_equal s(:arglist), exp.arglist
assert_equal s(), exp.args
end
def test_super_call
exp = parse 'super 1'
assert_equal :super, exp.method
assert_equal s(:arglist, s(:lit, 1)), exp.arglist
assert_equal s(s(:lit, 1)), exp.args
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册