Add array support todo

This commit is contained in:
Thomas Pelletier
2021-03-23 21:18:19 -04:00
parent a3b7e1e353
commit a25f636a07
2 changed files with 6 additions and 5 deletions
@@ -1833,7 +1833,7 @@ func TestUnmarshalSliceFail2(t *testing.T) {
assert.Error(t, toml.Unmarshal([]byte(doc), &actual))
}
func TestUnmarshalMixedTypeArray(t *testing.T) {
func TestUnmarshalMixedTypeSlice(t *testing.T) {
type TestStruct struct {
ArrayField []interface{}
}
@@ -1854,9 +1854,9 @@ func TestUnmarshalMixedTypeArray(t *testing.T) {
map[string]interface{}{
"Field": "inner1",
},
[]map[string]interface{}{
{"Field": "inner2"},
{"Field": "inner3"},
[]interface{}{
map[string]interface{}{"Field": "inner2"},
map[string]interface{}{"Field": "inner3"},
},
},
}