seen: verify arrays (#663)

Fixes #662
This commit is contained in:
Thomas Pelletier
2021-11-09 20:26:30 -05:00
committed by GitHub
parent 644515958c
commit f27a07d31a
3 changed files with 39 additions and 9 deletions
+6
View File
@@ -1916,6 +1916,12 @@ func TestIssue658(t *testing.T) {
require.Error(t, err)
}
func TestIssue662(t *testing.T) {
var v map[string]interface{}
err := toml.Unmarshal([]byte("a=[{b=1,b=2}]"), &v)
require.Error(t, err)
}
//nolint:funlen
func TestUnmarshalDecodeErrors(t *testing.T) {
examples := []struct {