move assignment test to basic suite
This commit is contained in:
parent
afce197797
commit
1593d330ae
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user