Skip to content

Commit 219105f

Browse files
author
mfarah
committed
Test result order no longer matters
1 parent 955ecc2 commit 219105f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

data_navigator_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ mapSplat:
3434
item1: things
3535
item2: whatever
3636
`)
37-
assertResult(t, "[things whatever]", fmt.Sprintf("%v", readMap(data, "mapSplat", []string{"*"})))
37+
var result = readMap(data, "mapSplat", []string{"*"}).([]interface{})
38+
var actual = []string{result[0].(string), result[1].(string)}
39+
sort.Strings(actual)
40+
assertResult(t, "[things whatever]", fmt.Sprintf("%v", actual))
3841
}
3942

4043
func TestReadMap_deep_splat(t *testing.T) {

0 commit comments

Comments
 (0)