diff options
author | Vincent Batoufflet <vincent@batoufflet.info> | 2014-05-10 12:05:29 +0200 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2014-05-10 15:38:18 -0400 |
commit | 73cbefdbc8829d24c9da27d9b2001a6a7e2eb169 (patch) | |
tree | ec2bfbd22dec5338557e68c6fdd9968a7c49dc76 /hugolib/template_test.go | |
parent | 667a047ceaa60f16cb5babc3c7e414b5d64f3804 (diff) |
Make template comparison functions handle floats
Diffstat (limited to 'hugolib/template_test.go')
-rw-r--r-- | hugolib/template_test.go | 2 |
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}, |