Test result order no longer matters

This commit is contained in:
mfarah 2015-10-07 13:36:39 +11:00
parent 955ecc2547
commit 219105f999

View File

@ -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) {