You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-08-07 21:52:55 +02:00
consolidate more tests
This commit is contained in:
@@ -4,6 +4,9 @@ func init() {
|
||||
var pEFace = func(val interface{}) *interface{} {
|
||||
return &val
|
||||
}
|
||||
var pInt = func(val int) *int {
|
||||
return &val
|
||||
}
|
||||
unmarshalCases = append(unmarshalCases, unmarshalCase{
|
||||
ptr: (**interface{})(nil),
|
||||
input: `"hello"`,
|
||||
@@ -16,5 +19,7 @@ func init() {
|
||||
})
|
||||
marshalCases = append(marshalCases,
|
||||
pEFace("hello"),
|
||||
(*int)(nil),
|
||||
pInt(100),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user