diff --git a/utils_test.go b/utils_test.go index 5f7a6af..2128846 100644 --- a/utils_test.go +++ b/utils_test.go @@ -1,13 +1,18 @@ package main import ( + "sort" "testing" "github.com/stretchr/testify/assert" ) func TestStringSetToSlice(t *testing.T) { - assert.Equal(t, []string{"foo", "bar"}, stringSetToSlice(map[string]bool{"foo": true, "bar": false})) + ss := stringSetToSlice(map[string]bool{"foo": true, "bar": false}) + + sort.Strings(ss) + + assert.Equal(t, []string{"bar", "foo"}, ss) } func TestIndent(t *testing.T) {