1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-27 08:30:57 +02:00

test []byte behavior

This commit is contained in:
Tao Wen 2018-02-27 12:04:11 +08:00
parent ad83167dc6
commit 9472474ffd

View File

@ -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{
ptr: (*[]string)(nil),
input: "[]",
}, unmarshalCase{
ptr: (*[]byte)(nil),
input: "[1,2,3]",
}, unmarshalCase{
ptr: (*[]byte)(nil),
input: `"aGVsbG8="`,
selected: true,
})
}