summaryrefslogtreecommitdiffstats
path: root/hugolib/page_test.go
diff options
context:
space:
mode:
authorMike Keesey <michael.w.keesey@gmail.com>2014-02-28 22:31:21 -0700
committerspf13 <steve.francia@gmail.com>2014-03-01 09:56:17 -0500
commit2540d884d8d8566caa1cfb71a23f01a746133581 (patch)
treeca45734caa1c8e5210cb45d99bfc7171fbc98752 /hugolib/page_test.go
parent2c0ded7f9fd2fdcab1f421652561e680c467d1d2 (diff)
Fixing issues go vet reports.
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r--hugolib/page_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index b140b6593..be9895336 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -457,10 +457,10 @@ func TestDifferentFrontMatterVarTypes(t *testing.T) {
t.Errorf("frontmatter not handling ints correctly should be %s, got: %s", "1", page.GetParam("an_integer"))
}
if page.GetParam("a_float") != 1.3 {
- t.Errorf("frontmatter not handling floats correctly should be %s, got: %s", 1.3, page.GetParam("a_float"))
+ t.Errorf("frontmatter not handling floats correctly should be %f, got: %s", 1.3, page.GetParam("a_float"))
}
if page.GetParam("a_bool") != false {
- t.Errorf("frontmatter not handling bools correctly should be %s, got: %s", false, page.GetParam("a_bool"))
+ t.Errorf("frontmatter not handling bools correctly should be %t, got: %s", false, page.GetParam("a_bool"))
}
if page.GetParam("a_date") != dateval {
t.Errorf("frontmatter not handling dates correctly should be %s, got: %s", dateval, page.GetParam("a_date"))