ref: 9421690281b061f6e8256a818693df0f18fed1c1
parent: d3abb93cc7a2a61557560543919f2e4c0a1cbd7a
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Feb 17 13:22:07 EST 2017
hugolib: Fix Windows build failure
--- a/hugolib/path_separators_windows_test.go
+++ b/hugolib/path_separators_windows_test.go
@@ -16,7 +16,7 @@
import (
"testing"
- "github.com/spf13/hugo/tpl"
+ "github.com/spf13/hugo/tpl/tplimpl"
)
const (
@@ -27,7 +27,7 @@
func TestTemplatePathSeparator(t *testing.T) {
t.Parallel()
tmpl := new(tpl.GoHTMLTemplate)
- if name := tmpl.GenerateTemplateNameFrom(win_base, win_path); name != "sub1/index.html" {
+ if name := tplimpl.GenerateTemplateNameFrom(win_base, win_path); name != "sub1/index.html" {
t.Fatalf("Template name incorrect. got %s but expected %s", name, "sub1/index.html")
}
}