Update decode_test.go

Co-authored-by: Sungyun Hur <ethan0311@gmail.com>
This commit is contained in:
Tommy Hyeonwoo Kim 2022-07-19 00:06:47 +09:00 committed by GitHub
parent f584919518
commit e5e8ed62c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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))