aboutsummaryrefslogtreecommitdiff
path: root/parser
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-05-20 16:46:36 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-05-20 16:46:36 +0200
commit4e2925ef695a31bca474654705371ff91c4dd7cc (patch)
tree482b92abcd6afb6ee630ae6b720ff612ea526f7b /parser
parent56f0d23c5994b6f51494aaae76cba22a5b3f3348 (diff)
fmt
Diffstat (limited to 'parser')
-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))