fix finish number error

This commit is contained in:
Tnze
2021-05-25 22:03:14 +08:00
parent c44af2bf34
commit 1f7d07b279
3 changed files with 5 additions and 8 deletions

View File

@ -6,12 +6,13 @@ import (
)
func TestSNBT_checkScanCode(t *testing.T) {
t.SkipNow()
//t.SkipNow()
var s scanner
s.reset()
for _, c := range []byte(`{ "a b\"c": {}, def: 12345}`) {
for _, c := range []byte(`1234`) {
t.Logf("[%c] - %d", c, s.step(c))
}
t.Logf("[%c] - %d", ' ', s.eof())
}
func TestSNBT_number(t *testing.T) {