patch another test

This commit is contained in:
Torsten Ruger 2014-07-14 11:31:46 +03:00
parent d531a24930
commit 122452c21b

View File

@ -31,9 +31,7 @@ def foo(x)
2 + 5 2 + 5
end end
HERE HERE
@parse_output = {:function_name=>{:name=>"foo"}, :parameter_list=>[{:parameter=>{:name=>"x"}}], :expressions=>[{:l=>{:name=>"abba"}, :o=>"= ", :r=>{:integer=>"5"}}, {:l=>{:integer=>"2"}, :o=>"+ ", :r=>{:integer=>"5"}}], :end=>"end"} @output = [Virtual::Method.new(:foo,[Ast::NameExpression.new(:x)])]
@transform_output = Ast::FunctionExpression.new(:foo, [Ast::NameExpression.new(:x)] , [Ast::AssignmentExpression.new(Ast::NameExpression.new(:abba),Ast::IntegerExpression.new(5)),Ast::OperatorExpression.new("+", Ast::IntegerExpression.new(2),Ast::IntegerExpression.new(5))] ,nil )
@parser = @parser.function_definition
end end
def test_function_if def test_function_if