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
+2 -1
View File
@@ -10,8 +10,9 @@ Development branch. Probably does not work.
- [x] Support Array Tables.
- [x] Unmarshal into pointers.
- [x] Support Date / times.
- [ ] Support Unmarshaler interface.
- [x] Support struct tags annotations.
- [ ] Support Arrays.
- [ ] Support Unmarshaler interface.
- [ ] Original go-toml unmarshal tests pass.
- [ ] Benchmark!
- [ ] Abstract AST.
@@ -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"},
},
},
}