From cf6cf56e3db8077fa37b33d987f9b7a01cffc637 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Thu, 18 Feb 2021 16:49:51 +0900 Subject: [PATCH] Fix invalid test case --- decode_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }) }