From 219105f999f8c6f2608f7bc67bf840eea25f9c87 Mon Sep 17 00:00:00 2001 From: mfarah Date: Wed, 7 Oct 2015 13:36:39 +1100 Subject: [PATCH] Test result order no longer matters --- data_navigator_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data_navigator_test.go b/data_navigator_test.go index ca36215e..9b152aae 100644 --- a/data_navigator_test.go +++ b/data_navigator_test.go @@ -34,7 +34,10 @@ mapSplat: item1: things item2: whatever `) - assertResult(t, "[things whatever]", fmt.Sprintf("%v", readMap(data, "mapSplat", []string{"*"}))) + var result = readMap(data, "mapSplat", []string{"*"}).([]interface{}) + var actual = []string{result[0].(string), result[1].(string)} + sort.Strings(actual) + assertResult(t, "[things whatever]", fmt.Sprintf("%v", actual)) } func TestReadMap_deep_splat(t *testing.T) {