ref: 0b7229f7b2a4fbc3537404802cae4c66cedb526c
parent: 4a2eda49cdd3180ab884a696ac987d7d6bb375db
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Aug 5 14:55:25 EDT 2015
Add some float tests to TestArethmic
--- a/tpl/template_funcs_test.go
+++ b/tpl/template_funcs_test.go
@@ -125,6 +125,8 @@
{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)