diff options
author | spf13 <steve.francia@gmail.com> | 2014-01-28 23:24:59 -0500 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-01-28 23:24:59 -0500 |
commit | 1882ffabc603a1a5a81b536157610dbbb4e1bd6a (patch) | |
tree | 63a8e54af3934258e7c7fa31514d294e1ec29788 /hugolib/page_test.go | |
parent | 1da3fd039a4ce4d1193a996b58dd5bae8c6e00e7 (diff) |
Adding support for boolean params
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r-- | hugolib/page_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go index aef303a77..83bef158c 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go @@ -209,6 +209,7 @@ var PAGE_WITH_VARIOUS_FRONTMATTER_TYPES = `+++ a_string = "bar" an_integer = 1 a_float = 1.3 +a_bool = false a_date = 1979-05-27T07:32:00Z +++ Front Matter with various frontmatter types` @@ -458,6 +459,9 @@ func TestDifferentFrontMatterVarTypes(t *testing.T) { 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")) } + if page.GetParam("a_bool") != false { + t.Errorf("frontmatter not handling bools correctly should be %s, 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")) } |