mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
a591a10626
If the building of the doc fails, tarvis will fail. This will help with pull requests.
17 lines
414 B
Go
17 lines
414 B
Go
package hugolib
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
const (
|
|
win_base = "c:\\a\\windows\\path\\layout"
|
|
win_path = "c:\\a\\windows\\path\\layout\\sub1\\index.html"
|
|
)
|
|
|
|
func TestTemplatePathSeperator(t *testing.T) {
|
|
tmpl := new(GoHtmlTemplate)
|
|
if name := tmpl.generateTemplateNameFrom(win_base, win_path); name != "sub1/index.html" {
|
|
t.Fatalf("Template name incorrect. Expected: %s, Got: %s", "sub1/index.html", name)
|
|
}
|
|
}
|