aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lexer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexer_test.go b/lexer_test.go
index 1c64735..22cb12e 100644
--- a/lexer_test.go
+++ b/lexer_test.go
@@ -16,11 +16,11 @@ func testInput(t *testing.T, s []string, ty int) {
}
func TestInteger(t *testing.T) {
- testInput(t, []string{"1", "¯1"}, INTEGER)
+ testInput(t, []string{"1", "¯1", "123"}, INTEGER)
}
func TestFloat(t *testing.T) {
- testInput(t, []string{"1.1", "¯1.1", "1e1", "¯1.1e1"}, FLOAT)
+ testInput(t, []string{"1.120", "¯1.1", "1e1", "¯1.1e¯1"}, FLOAT)
}
func TestComplex(t *testing.T) {