commit 714d4a9a974a3575b243765a832ae3ff959c1751
parent 44edd9382a3b9f84145ad8a8137a810c3dd5111c
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Sat, 18 Jun 2016 13:58:54 +0200
Fix failing Windows test
Closes #2225
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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)