Add Benchmark

This commit is contained in:
Tnze
2021-06-09 23:43:12 +08:00
parent 883c73d5e5
commit d730153750
2 changed files with 13 additions and 1 deletions

View File

@ -9,7 +9,7 @@ func TestSNBT_checkScanCode(t *testing.T) {
//t.SkipNow()
var s scanner
s.reset()
for _, c := range []byte(`[I;123,345]`) {
for _, c := range []byte(`[I;123,345], `) {
t.Logf("[%c] - %d", c, s.step(&s, c))
}
t.Logf("[%c] - %d", ' ', s.eof())