mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
hugolib: Use reflect.DeepEqual in tests
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
17f851780c
commit
d1b89f5c7c
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user