From 34b63fe1c75512ba04953f6a7e5e293fc24049e6 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Wed, 13 May 2020 16:52:32 +0200 Subject: [PATCH] Use Double.approx to compare exp results --- test/double_math.carp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/double_math.carp b/test/double_math.carp index ec97fe29..ca6b1b10 100644 --- a/test/double_math.carp +++ b/test/double_math.carp @@ -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)