From 2b0fad79b7d177ffd3c25ebd16aeda3ccdff0e7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 7 Feb 2016 23:02:46 +0100 Subject: [PATCH] tpl: Add two more doArithmetic test cases --- tpl/template_funcs_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index 83bac2bba..5f8550c9c 100644 --- 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"},