From 8f539e59c9b11645ddaa52264fc0980bdda2e7c1 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Tue, 21 Nov 2017 22:07:36 +0900 Subject: [PATCH] Fix utils test --- utils_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) {