mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-17 08:27:45 +03:00
Use Double.approx to compare exp results
This commit is contained in:
parent
05bf39827b
commit
34b63fe1c7
@ -47,10 +47,6 @@
|
||||
0.0
|
||||
(tanh 0.0)
|
||||
"tanh works as expected")
|
||||
(assert-equal test
|
||||
Double.e
|
||||
(exp 1.0)
|
||||
"exp works as expected")
|
||||
(assert-equal test
|
||||
8.0
|
||||
(ldexp 2.0 2)
|
||||
@ -87,6 +83,11 @@
|
||||
1.0
|
||||
(floor 1.9)
|
||||
"floor works as expected")
|
||||
(assert-op test
|
||||
Double.e
|
||||
(exp 1.0)
|
||||
"exp works as expected"
|
||||
Double.approx)
|
||||
(assert-op test
|
||||
0.3
|
||||
(mod 9.3 3.0)
|
||||
|
Loading…
Reference in New Issue
Block a user