From 714d4a9a974a3575b243765a832ae3ff959c1751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 18 Jun 2016 13:58:54 +0200 Subject: [PATCH] Fix failing Windows test Closes #2225 --- hugolib/embedded_shortcodes_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go index f9d411a19..9092272d5 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)