NBT Unmarshaler support

This commit is contained in:
Tnze
2019-07-31 21:00:30 +08:00
parent 4bd9c44f30
commit e385cb77cb
6 changed files with 29 additions and 50 deletions

View File

@ -53,7 +53,7 @@ func TestUnmarshal_simple(t *testing.T) {
t.Errorf("Unmarshal NBT fail: get %q, want %q", value.Name, "Bananrama")
}
//test skip
//test rawRead
var empty struct{}
if err := Unmarshal(data, &empty); err != nil {
t.Fatal(err)
@ -189,7 +189,7 @@ func TestUnmarshal_bitTest(t *testing.T) {
t.Errorf("parse fail, expect %v, get %v", want, value)
}
//test skip
//test rawRead
var empty struct{}
r, err = gzip.NewReader(bytes.NewReader(data))
if err != nil {