From: Bjørn Erik Pedersen Date: Wed, 5 Aug 2015 16:55:25 +0000 (+0200) Subject: Add some float tests to TestArethmic X-Git-Tag: v0.15~241 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0b7229f7b2a4fbc3537404802cae4c66cedb526c;p=brevno-suite%2Fhugo Add some float tests to TestArethmic --- diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index 81018626..f04cadee 100644 --- a/tpl/template_funcs_test.go +++ b/tpl/template_funcs_test.go @@ -125,6 +125,8 @@ func TestArethmic(t *testing.T) { {uint16(4), uint8(2), '/', uint64(2)}, {4, 2, '¤', false}, {4, 0, '/', false}, + {float64(2.3), float64(2.3), '+', float64(4.6)}, + {float64(2.3), int(2), '*', float64(4.6)}, } { // TODO(bep): Take precision into account. result, err := doArithmetic(this.a, this.b, this.op)