mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
Test result order no longer matters
This commit is contained in:
parent
955ecc2547
commit
219105f999
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user