1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-12 22:47:42 +02:00

add tests for #283

This commit is contained in:
Tao Wen
2018-07-01 13:05:25 +08:00
parent 8744d7c5c7
commit 720ab8dc7f
5 changed files with 13 additions and 7 deletions

View File

@ -93,6 +93,13 @@ func init() {
T float64 `json:"t"`
})(nil),
input: `{"T":10.0}`,
}, unmarshalCase{
ptr: (*struct {
KeyString string `json:"key_string"`
Type string `json:"type"`
Asks [][2]float64 `json:"asks"`
})(nil),
input: `{"key_string": "KEYSTRING","type": "TYPE","asks": [[1e+66,1]]}`,
})
marshalCases = append(marshalCases,
struct {