From eb78ca8b3ab6f619c70000a420ca344f46f51dd5 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Sat, 10 Feb 2018 02:12:22 +0200 Subject: [PATCH] fix node/stmt/t_for_test.go --- node/stmt/t_for_test.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/node/stmt/t_for_test.go b/node/stmt/t_for_test.go index a390fff..5b8b220 100644 --- a/node/stmt/t_for_test.go +++ b/node/stmt/t_for_test.go @@ -25,18 +25,14 @@ func TestFor(t *testing.T) { &stmt.For{ Init: []node.Node{ &assign_op.Assign{ - assign_op.AssignOp{ - Variable: &expr.Variable{VarName: &node.Identifier{Value: "$i"}}, - Expression: &scalar.Lnumber{Value: "0"}, - }, + Variable: &expr.Variable{VarName: &node.Identifier{Value: "$i"}}, + Expression: &scalar.Lnumber{Value: "0"}, }, }, Cond: []node.Node{ &binary_op.Smaller{ - binary_op.BinaryOp{ - Left: &expr.Variable{VarName: &node.Identifier{Value: "$i"}}, - Right: &scalar.Lnumber{Value: "10"}, - }, + Left: &expr.Variable{VarName: &node.Identifier{Value: "$i"}}, + Right: &scalar.Lnumber{Value: "10"}, }, }, Loop: []node.Node{