From 9a71fdff071115058486560600ea5d5265b07555 Mon Sep 17 00:00:00 2001 From: Fatih Arslan Date: Mon, 5 Oct 2015 13:38:53 +0300 Subject: [PATCH] scanner: split float and number tests --- scanner/scanner_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scanner/scanner_test.go b/scanner/scanner_test.go index eaa09c8..8e60992 100644 --- a/scanner/scanner_test.go +++ b/scanner/scanner_test.go @@ -165,6 +165,13 @@ func TestNumber(t *testing.T) { {token.NUMBER, "0X42"}, {token.NUMBER, "0X123456789abcDEF"}, {token.NUMBER, "0X" + f100}, + } + + testTokenList(t, tokenList) +} + +func TestFloat(t *testing.T) { + var tokenList = []tokenPair{ {token.FLOAT, "0."}, {token.FLOAT, "1."}, {token.FLOAT, "42."},