Add string slice with single value test function
This commit is contained in:
parent
df229f5255
commit
338ebffb9d
|
@ -180,6 +180,17 @@ func TestFieldDataGet(t *testing.T) {
|
||||||
[]string{"123", "abc"},
|
[]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": {
|
"comma string slice type, comma string with one value": {
|
||||||
map[string]*FieldSchema{
|
map[string]*FieldSchema{
|
||||||
"foo": &FieldSchema{Type: TypeCommaStringSlice},
|
"foo": &FieldSchema{Type: TypeCommaStringSlice},
|
||||||
|
|
Loading…
Reference in New Issue