Add test for set expansion in flatmap.Expand

This commit is contained in:
James Bardin 2017-01-04 16:11:46 -05:00
parent 85d8fba3bd
commit 1cec04b8a7
1 changed files with 11 additions and 0 deletions

View File

@ -106,6 +106,17 @@ func TestExpand(t *testing.T) {
"list2": []interface{}{"c"},
},
},
{
Map: map[string]string{
"set.#": "3",
"set.1234": "a",
"set.1235": "b",
"set.1236": "c",
},
Key: "set",
Output: []interface{}{"a", "b", "c"},
},
}
for _, tc := range cases {