mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-04 01:25:04 +03:00
Use Double.approx to compare exp results
This commit is contained in:
parent
05bf39827b
commit
34b63fe1c7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user