Add array support todo
This commit is contained in:
@@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user