aboutsummaryrefslogtreecommitdiff
path: root/lexer
diff options
context:
space:
mode:
authorDimitri Sokolyuk <sokolyuk@gmail.com>2022-08-24 14:27:07 +0200
committerDimitri Sokolyuk <sokolyuk@gmail.com>2022-08-24 14:27:07 +0200
commite452a2ec377334144aa9204514b8ad4bd2c2254e (patch)
tree8aadd92002a6c9587e2582c13eb0b62db164aa3f /lexer
parent6293378bb84702e9cbfc392158114c07d23d9642 (diff)
more cleanup
Diffstat (limited to 'lexer')
-rw-r--r--lexer/lexer_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/lexer/lexer_test.go b/lexer/lexer_test.go
index d66ad73..5818dbe 100644
--- a/lexer/lexer_test.go
+++ b/lexer/lexer_test.go
@@ -145,13 +145,11 @@ macro(x, y) { x + y; };
tok := l.NextToken()
if tok.Type != tt.expectedType {
- t.Fatalf("tests[%d] - tokentype wrong. expected=%q, got=%q",
- i, tt.expectedType, tok.Type)
+ t.Fatalf("tests[%d] - tokentype wrong. expected=%q, got=%q", i, tt.expectedType, tok.Type)
}
if tok.Literal != tt.expectedLiteral {
- t.Fatalf("tests[%d] - literal wrong. expected=%q, got=%q",
- i, tt.expectedLiteral, tok.Literal)
+ t.Fatalf("tests[%d] - literal wrong. expected=%q, got=%q", i, tt.expectedLiteral, tok.Literal)
}
}
}