mirror of
https://github.com/json-iterator/go.git
synced 2024-11-24 08:22:14 +02:00
21 lines
367 B
Go
21 lines
367 B
Go
package test
|
|
|
|
func init() {
|
|
two := float64(2)
|
|
marshalCases = append(marshalCases,
|
|
[1]*float64{nil},
|
|
[1]*float64{&two},
|
|
[2]*float64{},
|
|
)
|
|
unmarshalCases = append(unmarshalCases, unmarshalCase{
|
|
ptr: (*[0]int)(nil),
|
|
input: `[1]`,
|
|
}, unmarshalCase{
|
|
ptr: (*[1]int)(nil),
|
|
input: `[2]`,
|
|
}, unmarshalCase{
|
|
ptr: (*[1]int)(nil),
|
|
input: `[]`,
|
|
})
|
|
}
|