Browse Source

Fix utils test

renovate/configure
Yota Toyama 8 years ago
parent
commit
8f539e59c9
  1. 7
      utils_test.go

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

Loading…
Cancel
Save