aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-03-22 23:20:04 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-03-22 23:20:04 +0100
commit6162985cad3584b6389e1b113aec46c19ca4b52f (patch)
tree7807b902a4a21b71a02a54dd739ae811eeb8eabe
parentdf5fe0927002868c32ddf7d2f604e31fb6fefe9c (diff)
Update test cases
-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) {