mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Make template comparison functions handle floats
This commit is contained in:
committed by
spf13
parent
667a047cea
commit
73cbefdbc8
@@ -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},
|
||||
|
Reference in New Issue
Block a user