mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Correct spelling of two test files: seperators → separators
This commit is contained in:
18
hugolib/path_separators_windows_test.go
Normal file
18
hugolib/path_separators_windows_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package hugolib
|
||||
|
||||
import (
|
||||
"github.com/spf13/hugo/tpl"
|
||||
"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(tpl.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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user