Add decoder test case

This commit is contained in:
Masaaki Goshima 2019-10-29 16:22:55 +09:00
parent cbede39300
commit 21e33cdcf6

View file

@ -286,6 +286,13 @@ func TestDecoder(t *testing.T) {
A string
}{Tags: []string{"hello-world"}, A: "foo"},
},
{
"",
(*struct{})(nil),
},
{
"{}", struct{}{},
},
}
for _, test := range tests {
buf := bytes.NewBufferString(test.source)