move assignment test to basic suite

This commit is contained in:
Torsten Ruger 2014-04-29 16:49:37 +03:00
parent afce197797
commit 1593d330ae
3 changed files with 7 additions and 12 deletions

View File

@ -27,4 +27,11 @@ HERE
@parser = @parser.string
end
def test_assignment
@string_input = "a = 5"
@parse_output = { :asignee => { :name=>"a" } , :asigned => { :integer => "5" } }
@transform_output = Parser::AssignmentExpression.new("a", Parser::IntegerExpression.new(5) )
@parser = @parser.assignment
end
end

View File

@ -59,11 +59,4 @@ HERE
check
end
def test_assignment
@string_input = "a = 5"
@parse_output = { :asignee => { :name=>"a" } , :asigned => { :integer => "5" } }
@parser = @parser.assignment
check
end
end

View File

@ -34,9 +34,4 @@ class TransformTest < MiniTest::Test
check
end
def test_assignment
@input = { :asignee => { :name=>"a" } , :asigned => { :integer => "5" } }
@transform_output = Parser::AssignmentExpression.new("a", Parser::IntegerExpression.new(5) )
check
end
end