diff --git a/test/parser/test_basic.rb b/test/parser/test_basic.rb index 7542477c..1b16c993 100644 --- a/test/parser/test_basic.rb +++ b/test/parser/test_basic.rb @@ -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 \ No newline at end of file diff --git a/test/test_parser.rb b/test/test_parser.rb index 1d1bc90b..76933c1a 100644 --- a/test/test_parser.rb +++ b/test/test_parser.rb @@ -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 diff --git a/test/test_transform.rb b/test/test_transform.rb index 1b0bf185..60685337 100644 --- a/test/test_transform.rb +++ b/test/test_transform.rb @@ -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