You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-15 22:50:24 +02:00
fix random go test failure
This commit is contained in:
@ -41,5 +41,6 @@ func Test_encode_struct_with_optional_field(t *testing.T) {
|
||||
obj.field2 = &world
|
||||
str, err := MarshalToString(obj)
|
||||
should.Nil(err)
|
||||
should.Equal(`{"field1":null,"field2":"world"}`, str)
|
||||
should.Contains(str, `"field1":null`)
|
||||
should.Contains(str, `"field2":"world"`)
|
||||
}
|
Reference in New Issue
Block a user