Closed ernado closed 2 years ago
package jscan import ( "encoding/json" "testing" ) func TestValid(t *testing.T) { for _, v := range []string{ "\"\x01\"", } { if json.Valid([]byte(v)) != Valid(v) { t.Errorf("%#v", v) } } }
=== RUN TestValid valid_test.go:13: "\"\x01\"" --- FAIL: TestValid (0.00s) === RUN TestValid --- PASS: TestValid (0.00s) FAIL