diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go index 2815c6d99..67e2caee9 100644 --- a/hugolib/testhelpers_test.go +++ b/hugolib/testhelpers_test.go @@ -6,6 +6,7 @@ import ( "math/rand" "path/filepath" "runtime" + "sort" "strconv" "testing" "time" @@ -980,6 +981,15 @@ func content(c resource.ContentProvider) string { return ccs } +func pagesToString(pages ...page.Page) string { + var paths []string + for _, p := range pages { + paths = append(paths, p.Path()) + } + sort.Strings(paths) + return strings.Join(paths, "|") +} + func dumpPages(pages ...page.Page) { fmt.Println("---------") for _, p := range pages {