summaryrefslogtreecommitdiffstats
path: root/hugolib/taxonomy_test.go
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2016-12-26 19:42:43 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-12-27 11:19:25 +0100
commitd1b89f5c7cb3d1031d74014b4b2150a434bf557e (patch)
tree9ac628caca272ef9cdc0edca7fb0496dbd32a28b /hugolib/taxonomy_test.go
parent17f851780c79d0223b247dadcd8ddec0c74c4500 (diff)
hugolib: Use reflect.DeepEqual in tests
Diffstat (limited to 'hugolib/taxonomy_test.go')
-rw-r--r--hugolib/taxonomy_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/taxonomy_test.go b/hugolib/taxonomy_test.go
index 4c6acf509..2d436c7dd 100644
--- a/hugolib/taxonomy_test.go
+++ b/hugolib/taxonomy_test.go
@@ -15,6 +15,7 @@ package hugolib
import (
"path/filepath"
+ "reflect"
"testing"
"github.com/spf13/viper"
@@ -43,7 +44,7 @@ func TestByCountOrderOfTaxonomies(t *testing.T) {
st = append(st, t.Name)
}
- if !compareStringSlice(st, []string{"a", "b", "c"}) {
+ if !reflect.DeepEqual(st, []string{"a", "b", "c"}) {
t.Fatalf("ordered taxonomies do not match [a, b, c]. Got: %s", st)
}
}