Basic SNBT list support

This commit is contained in:
Tnze
2021-05-26 15:02:49 +08:00
parent e2fbef9bea
commit 233b44a13f
4 changed files with 53 additions and 5 deletions

View File

@ -6,10 +6,10 @@ 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, 'gh"i': 0.123f}`) {
for _, c := range []byte(`[I;1,2,3]`) {
t.Logf("[%c] - %d", c, s.step(c))
}
t.Logf("[%c] - %d", ' ', s.eof())