Use Double.approx to compare exp results

This commit is contained in:
Dhananjay Balan 2020-05-13 16:52:32 +02:00
parent 05bf39827b
commit 34b63fe1c7

View File

@ -47,10 +47,6 @@
0.0 0.0
(tanh 0.0) (tanh 0.0)
"tanh works as expected") "tanh works as expected")
(assert-equal test
Double.e
(exp 1.0)
"exp works as expected")
(assert-equal test (assert-equal test
8.0 8.0
(ldexp 2.0 2) (ldexp 2.0 2)
@ -87,6 +83,11 @@
1.0 1.0
(floor 1.9) (floor 1.9)
"floor works as expected") "floor works as expected")
(assert-op test
Double.e
(exp 1.0)
"exp works as expected"
Double.approx)
(assert-op test (assert-op test
0.3 0.3
(mod 9.3 3.0) (mod 9.3 3.0)