shithub: hugo

Download patch

ref: 4784b63eebd51b1860bb8127c7e786e36158e026
parent: 44cdb37b038e7c79893dfe431e9d88d1b07148c4
author: bep <[email protected]>
date: Mon Mar 9 11:52:32 EDT 2015

Add test cases for Ne and Eq type normalisation

See #961

--- a/tpl/template_test.go
+++ b/tpl/template_test.go
@@ -65,9 +65,15 @@
 		{5, 8, -1},
 		{8, 5, 1},
 		{5, 5, 0},
+		{int(5), int64(5), 0},
+		{int32(5), int(5), 0},
+		{int16(4), int(5), -1},
+		{uint(15), uint64(15), 0},
 		{-2, 1, -1},
 		{2, -5, 1},
 		{0.0, 1.23, -1},
+		{1.1, 1.1, 0},
+		{float32(1.0), float64(1.0), 0},
 		{1.23, 0.0, 1},
 		{"5", "5", 0},
 		{"8", "5", 1},