@@ -6,6 +6,7 @@ func init() {
[]interface{}{"hello"},
nilSlice,
&nilSlice,
+ selectedMarshalCase{[]byte{1,2,3}},
)
unmarshalCases = append(unmarshalCases, unmarshalCase{
ptr: (*[]string)(nil),
@@ -13,5 +14,12 @@ func init() {
}, unmarshalCase{
input: "[]",
+ }, unmarshalCase{
+ ptr: (*[]byte)(nil),
+ input: "[1,2,3]",
+ input: `"aGVsbG8="`,
+ selected: true,
})
}