fix three args for call
This commit is contained in:
@ -36,7 +36,7 @@ class TestCallSite < MiniTest::Test
|
||||
check
|
||||
end
|
||||
|
||||
def test_call_site_multi
|
||||
def test_call_site_2
|
||||
@input = 'self.baz(42, foo)'
|
||||
@output = Ast::CallSiteExpression.new :baz,
|
||||
[Ast::IntegerExpression.new(42), Ast::NameExpression.new("foo") ] ,
|
||||
@ -44,4 +44,14 @@ class TestCallSite < MiniTest::Test
|
||||
check
|
||||
end
|
||||
|
||||
def test_call_site_3
|
||||
@input = 'self.baz(42, foo , bar)'
|
||||
@output = Ast::CallSiteExpression.new :baz,
|
||||
[Ast::IntegerExpression.new(42) ,
|
||||
Ast::NameExpression.new("foo") ,
|
||||
Ast::NameExpression.new("bar")] ,
|
||||
Ast::NameExpression.new(:self)
|
||||
check
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user