helper/schema: test that set can be nil

This commit is contained in:
Mitchell Hashimoto 2015-02-18 14:59:55 -08:00
parent e4f0f6b15d
commit 9b8b38cbb1
1 changed files with 9 additions and 0 deletions

View File

@ -120,6 +120,15 @@ func TestMapFieldWriter(t *testing.T) {
},
},
"list of resources nil": {
[]string{"listResource"},
nil,
false,
map[string]string{
"listResource.#": "0",
},
},
"list of strings": {
[]string{"list"},
[]interface{}{"foo", "bar"},