forked from mirror/go-json
Update decode_test.go
Co-authored-by: Sungyun Hur <ethan0311@gmail.com>
This commit is contained in:
parent
f584919518
commit
e5e8ed62c8
|
@ -3994,8 +3994,8 @@ func (t *issue384) UnmarshalJSON(b []byte) error {
|
|||
|
||||
func TestIssue384(t *testing.T) {
|
||||
testcases := []string{
|
||||
"{\"data\": \"" + strings.Repeat("-", 500) + "\\\"\"}",
|
||||
"[\"" + strings.Repeat("-", 508) + "\\\"\"]",
|
||||
`{"data": "` + strings.Repeat("-", 500) + `\""}`,
|
||||
`["` + strings.Repeat("-", 508) + `\""]`,
|
||||
}
|
||||
for _, tc := range testcases {
|
||||
dec := json.NewDecoder(strings.NewReader(tc))
|
||||
|
|
Loading…
Reference in New Issue