Skip to content

Commit

Permalink
Update decode_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sungyun Hur <[email protected]>
  • Loading branch information
KimHyeonwoo and HurSungYun authored Jul 18, 2022
1 parent f584919 commit e5e8ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit e5e8ed6

Please sign in to comment.