diff --git a/decode_test.go b/decode_test.go index 742143d..e5e7da9 100644 --- a/decode_test.go +++ b/decode_test.go @@ -300,7 +300,7 @@ func (u *unmarshalText) UnmarshalText(b []byte) error { func Test_UnmarshalText(t *testing.T) { t.Run("*struct", func(t *testing.T) { var v unmarshalText - assertErr(t, json.Unmarshal([]byte(`11`), &v)) + assertErr(t, json.Unmarshal([]byte(`"11"`), &v)) assertEq(t, "unmarshal", v.v, 11) }) }