mirror of https://github.com/goccy/go-json.git
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) {
|
func TestIssue384(t *testing.T) {
|
||||||
testcases := []string{
|
testcases := []string{
|
||||||
"{\"data\": \"" + strings.Repeat("-", 500) + "\\\"\"}",
|
`{"data": "` + strings.Repeat("-", 500) + `\""}`,
|
||||||
"[\"" + strings.Repeat("-", 508) + "\\\"\"]",
|
`["` + strings.Repeat("-", 508) + `\""]`,
|
||||||
}
|
}
|
||||||
for _, tc := range testcases {
|
for _, tc := range testcases {
|
||||||
dec := json.NewDecoder(strings.NewReader(tc))
|
dec := json.NewDecoder(strings.NewReader(tc))
|
||||||
|
|
Loading…
Reference in New Issue