helper/schema: add test for GH-814

This commit is contained in:
Mitchell Hashimoto 2015-01-16 08:37:25 -08:00
parent b6e591e03f
commit e32cd396ad
1 changed files with 9 additions and 0 deletions

View File

@ -140,6 +140,15 @@ func TestMapFieldWriter(t *testing.T) {
},
},
"set nil": {
[]string{"set"},
nil,
false,
map[string]string{
"set.#": "0",
},
},
"set resource": {
[]string{"setDeep"},
[]interface{}{