From 6162985cad3584b6389e1b113aec46c19ca4b52f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 22 Mar 2015 23:20:04 +0100 Subject: Update test cases --- lexer_test.go | 4 ++-- 1 file 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) { -- cgit v1.2.3