1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-15 22:50:24 +02:00

fix anonymous fields

This commit is contained in:
Tao Wen
2017-06-21 00:26:18 +08:00
parent 3333ec11a0
commit ff3c624fa9
12 changed files with 58 additions and 53 deletions

View File

@ -1,9 +1,9 @@
package extra
import (
"testing"
"github.com/json-iterator/go"
"github.com/json-iterator/go/require"
"testing"
)
func init() {
@ -98,4 +98,4 @@ func Test_empty_array_as_object(t *testing.T) {
var val struct{}
should.Nil(jsoniter.UnmarshalFromString(`[]`, &val))
should.Equal(struct{}{}, val)
}
}