From: Bjørn Erik Pedersen Date: Sun, 7 Feb 2016 22:02:46 +0000 (+0100) Subject: tpl: Add two more doArithmetic test cases X-Git-Tag: v0.16~344 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2b0fad79b7d177ffd3c25ebd16aeda3ccdff0e7a;p=brevno-suite%2Fhugo tpl: Add two more doArithmetic test cases --- diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index 83bac2bb..5f8550c9 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"},