mirror of
https://github.com/json-iterator/go.git
synced 2025-06-06 22:36:25 +02:00
improve test
This commit is contained in:
parent
c59c42fda0
commit
48cc4d965a
@ -389,7 +389,8 @@ func Test_omitempty_nil_nonempty_interface(t *testing.T) {
|
|||||||
should.Equal(nil, err)
|
should.Equal(nil, err)
|
||||||
should.Equal(string(js), str)
|
should.Equal(string(js), str)
|
||||||
|
|
||||||
err = Unmarshal(js, &obj)
|
obj.Field = MyString("hello")
|
||||||
|
err = UnmarshalFromString(`{"field":null}`, &obj)
|
||||||
should.Equal(nil, err)
|
should.Equal(nil, err)
|
||||||
should.Equal(nil, obj.Field)
|
should.Equal(nil, obj.Field)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user