summaryrefslogtreecommitdiffstats
path: root/hugolib/template_test.go
diff options
context:
space:
mode:
authorVincent Batoufflet <vincent@batoufflet.info>2014-05-10 12:05:29 +0200
committerspf13 <steve.francia@gmail.com>2014-05-10 15:38:18 -0400
commit73cbefdbc8829d24c9da27d9b2001a6a7e2eb169 (patch)
treeec2bfbd22dec5338557e68c6fdd9968a7c49dc76 /hugolib/template_test.go
parent667a047ceaa60f16cb5babc3c7e414b5d64f3804 (diff)
Make template comparison functions handle floats
Diffstat (limited to 'hugolib/template_test.go')
-rw-r--r--hugolib/template_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/template_test.go b/hugolib/template_test.go
index ffc417b4c..029e2a49f 100644
--- a/hugolib/template_test.go
+++ b/hugolib/template_test.go
@@ -16,6 +16,8 @@ func TestGt(t *testing.T) {
{5, 5, false},
{-2, 1, false},
{2, -5, true},
+ {0.0, 1.23, false},
+ {1.23, 0.0, true},
{"8", "5", true},
{"5", "0001", true},
{[]int{100, 99}, []int{1, 2, 3, 4}, false},