Add string slice with single value test function

This commit is contained in:
Jeff Mitchell
2017-06-14 14:20:37 -04:00
parent d68f3543b8
commit 8a88e37f2b

View File

@@ -180,6 +180,17 @@ func TestFieldDataGet(t *testing.T) {
[]string{"123", "abc"},
},
"string slice type, single value": {
map[string]*FieldSchema{
"foo": &FieldSchema{Type: TypeStringSlice},
},
map[string]interface{}{
"foo": "abc",
},
"foo",
[]string{"abc"},
},
"comma string slice type, comma string with one value": {
map[string]*FieldSchema{
"foo": &FieldSchema{Type: TypeCommaStringSlice},