mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add some float tests to TestArethmic
This commit is contained in:
parent
4a2eda49cd
commit
0b7229f7b2
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ func TestArethmic(t *testing.T) {
|
||||||
{uint16(4), uint8(2), '/', uint64(2)},
|
{uint16(4), uint8(2), '/', uint64(2)},
|
||||||
{4, 2, '¤', false},
|
{4, 2, '¤', false},
|
||||||
{4, 0, '/', 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.
|
// TODO(bep): Take precision into account.
|
||||||
result, err := doArithmetic(this.a, this.b, this.op)
|
result, err := doArithmetic(this.a, this.b, this.op)
|
||||||
|
|
Loading…
Reference in a new issue