Fix invalid test case

This commit is contained in:
Masaaki Goshima 2021-02-18 16:49:51 +09:00
parent 0288026fde
commit cf6cf56e3d
1 changed files with 1 additions and 1 deletions

View File

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