aboutsummaryrefslogtreecommitdiff
path: root/parser/parser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/parser_test.go')
-rw-r--r--parser/parser_test.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/parser/parser_test.go b/parser/parser_test.go
index d6d836d..b451ddf 100644
--- a/parser/parser_test.go
+++ b/parser/parser_test.go
@@ -966,9 +966,7 @@ func testLetStatement(t *testing.T, s ast.Statement, name string) bool {
return true
}
-func testInfixExpression(t *testing.T, exp ast.Expression, left interface{},
- operator string, right interface{}) bool {
-
+func testInfixExpression(t *testing.T, exp ast.Expression, left interface{}, operator string, right interface{}) bool {
opExp, ok := exp.(*ast.InfixExpression)
if !ok {
t.Errorf("exp is not ast.OperatorExpression. got=%T(%s)", exp, exp)
@@ -991,11 +989,7 @@ func testInfixExpression(t *testing.T, exp ast.Expression, left interface{},
return true
}
-func testLiteralExpression(
- t *testing.T,
- exp ast.Expression,
- expected interface{},
-) bool {
+func testLiteralExpression(t *testing.T, exp ast.Expression, expected interface{}) bool {
switch v := expected.(type) {
case int:
return testIntegerLiteral(t, exp, int64(v))