hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 2b0fad79b7d177ffd3c25ebd16aeda3ccdff0e7a
parent f90b45f7f33a78a6c6248d628190b0e049667704
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sun,  7 Feb 2016 23:02:46 +0100

tpl: Add two more doArithmetic test cases

Diffstat:
Mtpl/template_funcs_test.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go
@@ -151,6 +151,8 @@ func TestArethmic(t *testing.T) {
 		{float64(1), uint(2), '+', float64(3)},
 		{float64(1), "do", '+', false},
 		{uint(1), int(2), '+', uint64(3)},
+		{uint(1), int(-2), '+', int64(-1)},
+		{int(-1), uint(2), '+', int64(1)},
 		{uint(1), float64(2), '+', float64(3)},
 		{uint(1), "do", '+', false},
 		{"do ", "be", '+', "do be"},