NBT convert part 1

This commit is contained in:
Tnze
2021-05-25 20:10:57 +08:00
parent 69601cec28
commit c44af2bf34
4 changed files with 181 additions and 7 deletions

View File

@ -5,6 +5,15 @@ import (
"testing"
)
func TestSNBT_checkScanCode(t *testing.T) {
t.SkipNow()
var s scanner
s.reset()
for _, c := range []byte(`{ "a b\"c": {}, def: 12345}`) {
t.Logf("[%c] - %d", c, s.step(c))
}
}
func TestSNBT_number(t *testing.T) {
goods := []string{
"0", "1234567890", "3.1415926",