ref: 0595f27e6d442ca851e3cf065a95f5e3471c6be6
dir: /hugolib/path_seperators_test.go/
package hugolib import ( "testing" "path/filepath" ) func TestDegenerateMissingFolderInPageFilename(t *testing.T) { p := NewPage(filepath.Join("foobar")) if p != nil { t.Fatalf("Creating a new Page without a subdirectory should result in nil page") } } func TestSettingOutFileOnPageContainsCorrectSlashes(t *testing.T) { s := NewSite(&Config{}) p := NewPage(filepath.Join("sub", "foobar")) s.setOutFile(p) }