mirror of
https://github.com/json-iterator/go.git
synced 2025-05-19 21:53:05 +02:00
test []byte behavior
This commit is contained in:
parent
ad83167dc6
commit
9472474ffd
@ -6,6 +6,7 @@ func init() {
|
|||||||
[]interface{}{"hello"},
|
[]interface{}{"hello"},
|
||||||
nilSlice,
|
nilSlice,
|
||||||
&nilSlice,
|
&nilSlice,
|
||||||
|
selectedMarshalCase{[]byte{1,2,3}},
|
||||||
)
|
)
|
||||||
unmarshalCases = append(unmarshalCases, unmarshalCase{
|
unmarshalCases = append(unmarshalCases, unmarshalCase{
|
||||||
ptr: (*[]string)(nil),
|
ptr: (*[]string)(nil),
|
||||||
@ -13,5 +14,12 @@ func init() {
|
|||||||
}, unmarshalCase{
|
}, unmarshalCase{
|
||||||
ptr: (*[]string)(nil),
|
ptr: (*[]string)(nil),
|
||||||
input: "[]",
|
input: "[]",
|
||||||
|
}, unmarshalCase{
|
||||||
|
ptr: (*[]byte)(nil),
|
||||||
|
input: "[1,2,3]",
|
||||||
|
}, unmarshalCase{
|
||||||
|
ptr: (*[]byte)(nil),
|
||||||
|
input: `"aGVsbG8="`,
|
||||||
|
selected: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user