mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
hugolib: Fix Windows build failure
This commit is contained in:
parent
d3abb93cc7
commit
9421690281
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ package hugolib
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/spf13/hugo/tpl"
|
"github.com/spf13/hugo/tpl/tplimpl"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -27,7 +27,7 @@ const (
|
||||||
func TestTemplatePathSeparator(t *testing.T) {
|
func TestTemplatePathSeparator(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
tmpl := new(tpl.GoHTMLTemplate)
|
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")
|
t.Fatalf("Template name incorrect. got %s but expected %s", name, "sub1/index.html")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue