seen: check inline tables (#660)

Fixes #658
This commit is contained in:
Thomas Pelletier
2021-11-08 21:53:02 -05:00
committed by GitHub
parent dc1740d473
commit 8683be35f6
2 changed files with 30 additions and 9 deletions
+6
View File
@@ -1910,6 +1910,12 @@ func TestIssue564(t *testing.T) {
require.Equal(t, uuid{0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA}, config.ID)
}
func TestIssue658(t *testing.T) {
var v map[string]interface{}
err := toml.Unmarshal([]byte("e={b=1,b=4}"), &v)
require.Error(t, err)
}
//nolint:funlen
func TestUnmarshalDecodeErrors(t *testing.T) {
examples := []struct {