1
0
mirror of https://github.com/json-iterator/go.git synced 2025-04-20 11:28:49 +02:00
json-iterator/value_tests/slice_test.go

15 lines
252 B
Go
Raw Normal View History

2018-02-13 23:49:40 +08:00
package test
func init() {
2018-02-14 08:39:18 +08:00
nilSlice := []string(nil)
marshalCases = append(marshalCases,
[]interface{}{"hello"},
nilSlice,
&nilSlice,
)
unmarshalCases = append(unmarshalCases, unmarshalCase{
ptr: (*[]string)(nil),
input: "null",
})
}