From a8247b77cdc5f72570078d1f9f7515e7a64c8e40 Mon Sep 17 00:00:00 2001 From: Blake G Date: Wed, 28 Apr 2021 20:30:37 -0600 Subject: [PATCH] Fix panic in benchmark test Closes #8 --- scanner_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/scanner_test.go b/scanner_test.go index 5d28d8b..fda1ea2 100644 --- a/scanner_test.go +++ b/scanner_test.go @@ -154,6 +154,7 @@ func BenchmarkParseNumber(b *testing.B) { r: r, }, } + scanner.Next() n := scanner.parseNumber(scanner.br.window(0)[0]) if n != len(tc) { b.Fatalf("failed")