summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoah Campbell <noahcampbell@gmail.com>2013-08-12 20:38:37 -0700
committerNoah Campbell <noahcampbell@gmail.com>2013-08-12 20:40:34 -0700
commit5664780ccabc5c1f7113ae305fe89074fd7a0afb (patch)
tree6513cddbc73b21b04a491f4da0f81d3236c6c886
parent2d11d1bd671ef20fe833855d87506fd2b7ffa515 (diff)
gofmt pass
Clean up test files.
-rw-r--r--hugolib/path_seperators_test.go8
-rw-r--r--hugolib/path_seperators_windows_test.go2
2 files changed, 4 insertions, 6 deletions
diff --git a/hugolib/path_seperators_test.go b/hugolib/path_seperators_test.go
index f13eea1ef..9e112f82d 100644
--- a/hugolib/path_seperators_test.go
+++ b/hugolib/path_seperators_test.go
@@ -23,10 +23,10 @@ func TestDegenerateMissingFolderInPageFilename(t *testing.T) {
}
func TestNewPageWithFilePath(t *testing.T) {
- toCheck := []struct{
- input string
+ toCheck := []struct {
+ input string
section string
- layout string
+ layout string
}{
{filepath.Join("sub", "foobar.html"), "sub", "sub/single.html"},
{filepath.Join("content", "sub", "foobar.html"), "sub", "sub/single.html"},
@@ -47,5 +47,3 @@ func TestNewPageWithFilePath(t *testing.T) {
}
}
}
-
-
diff --git a/hugolib/path_seperators_windows_test.go b/hugolib/path_seperators_windows_test.go
index 85b97222b..c6df7f61e 100644
--- a/hugolib/path_seperators_windows_test.go
+++ b/hugolib/path_seperators_windows_test.go
@@ -7,7 +7,7 @@ import (
func TestTemplatePathSeperator(t *testing.T) {
config := Config{
LayoutDir: "c:\\a\\windows\\path\\layout",
- Path: "c:\\a\\windows\\path",
+ Path: "c:\\a\\windows\\path",
}
s := &Site{Config: config}
if name := s.generateTemplateNameFrom("c:\\a\\windows\\path\\layout\\sub1\\index.html"); name != "sub1/index.html" {