diff --git a/helper/schema/field_writer_map_test.go b/helper/schema/field_writer_map_test.go index 38eaca94b8..fa2e2fa2b7 100644 --- a/helper/schema/field_writer_map_test.go +++ b/helper/schema/field_writer_map_test.go @@ -167,6 +167,21 @@ func TestMapFieldWriter(t *testing.T) { true, map[string]string{}, }, + + "full object": { + nil, + map[string]interface{}{ + "string": "foo", + "list": []interface{}{"foo", "bar"}, + }, + false, + map[string]string{ + "string": "foo", + "list.#": "2", + "list.0": "foo", + "list.1": "bar", + }, + }, } for name, tc := range cases {