You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-30 23:23:49 +02:00
fix #207 delay unsupported type error reporting
This commit is contained in:
@ -20,7 +20,7 @@ func Test_write_empty_interface_via_placeholder(t *testing.T) {
|
||||
cacheKey: reflect.TypeOf(m).Elem(),
|
||||
}
|
||||
stream := ConfigFastest.BorrowStream(nil)
|
||||
encoderOfType(ConfigFastest.(*frozenConfig), reflect.TypeOf(m).Elem())
|
||||
encoderOfType(ConfigFastest.(*frozenConfig), "", reflect.TypeOf(m).Elem())
|
||||
encoder.EncodeInterface(inf, stream)
|
||||
should.Equal(`"hello"`, string(stream.Buffer()))
|
||||
}
|
||||
|
Reference in New Issue
Block a user