From: Bjørn Erik Pedersen Date: Sat, 18 Jun 2016 11:58:54 +0000 (+0200) Subject: Fix failing Windows test X-Git-Tag: v0.17~280 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=714d4a9a974a3575b243765a832ae3ff959c1751;p=brevno-suite%2Fhugo Fix failing Windows test Closes #2225 --- diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go index f9d411a1..9092272d 100644 --- a/hugolib/embedded_shortcodes_test.go +++ b/hugolib/embedded_shortcodes_test.go @@ -18,6 +18,7 @@ import ( "html/template" "net/url" "os" + "path/filepath" "regexp" "testing" @@ -48,7 +49,7 @@ func doTestShortcodeCrossrefs(t *testing.T, relative bool) { expectedBase = baseURL } - path := "blog/post.md" + path := filepath.FromSlash("blog/post.md") in := fmt.Sprintf(`{{< %s "%s" >}}`, refShortcode, path) expected := fmt.Sprintf(`%s/simple/url/`, expectedBase)