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."},