Skip to content

Commit

Permalink
Fix panic in benchmark test
Browse files Browse the repository at this point in the history
Closes pkg#8
  • Loading branch information
tech10 committed Apr 29, 2021
1 parent 1536808 commit a8247b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a8247b7

Please sign in to comment.