1
0
mirror of https://github.com/json-iterator/go.git synced 2024-12-09 08:55:35 +02:00
json-iterator/skip_tests/struct_test.go

20 lines
563 B
Go
Raw Normal View History

2018-02-13 14:41:21 +02:00
package skip_tests
func init() {
testCases = append(testCases, testCase{
ptr: (*struct{})(nil),
inputs: []string{
`{}`, // valid
`{"hello":"world"}`, // valid
`{hello:"world"}`, // invalid
`{"hello:"world"}`, // invalid
`{"hello","world"}`, // invalid
`{"hello":{}`, // invalid
`{"hello":{}}`, // valid
`{"hello":{}}}`, // invalid
`{"hello": { "hello": 1}}`, // valid
`{abc}`, // invalid
2018-02-13 14:41:21 +02:00
},
})
2018-02-24 16:04:41 +02:00
}