Cleanup formatting - go fmt ./...

Remember to run go fmt ./... before committing.  Looks sternly in mirror
This commit is contained in:
Noah Campbell
2013-08-30 14:38:33 -07:00
parent 4ed43e8076
commit a792ec09ce
3 changed files with 14 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
package hugolib
import (
"fmt"
"bytes"
"fmt"
"strings"
"testing"
)
@@ -164,16 +164,17 @@ func TestRenderThingOrDefault(t *testing.T) {
if string(html.Bytes()) != test.expected {
t.Errorf("Content does not match. Expected '%s', got '%s'", test.expected, html)
}
}}
}
}
func TestSetOutFile(t *testing.T) {
s := new(Site)
s := new(Site)
p := pageMust(ReadFrom(strings.NewReader(PAGE_URL_SPECIFIED), "content/a/file.md"))
s.setOutFile(p)
s.setOutFile(p)
expected := "mycategory/my-whatever-content/index.html"
expected := "mycategory/my-whatever-content/index.html"
if p.OutFile != "mycategory/my-whatever-content/index.html" {
t.Errorf("Outfile does not match. Expected '%s', got '%s'", expected, p.OutFile)
}
if p.OutFile != "mycategory/my-whatever-content/index.html" {
t.Errorf("Outfile does not match. Expected '%s', got '%s'", expected, p.OutFile)
}
}