From 1cec04b8a715c9601cdc0ddf8291f441f49aa024 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Wed, 4 Jan 2017 16:11:46 -0500 Subject: [PATCH] Add test for set expansion in flatmap.Expand --- flatmap/expand_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/flatmap/expand_test.go b/flatmap/expand_test.go index b480e2ca9..b5da3197b 100644 --- a/flatmap/expand_test.go +++ b/flatmap/expand_test.go @@ -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 {