schema: add test for nil string case

This commit is contained in:
Fatih Arslan 2015-09-16 23:35:10 +03:00
parent 8e7fc240f9
commit f269d4fc8c
1 changed files with 9 additions and 0 deletions

View File

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