From 0b0b6020c3bbe4fc39412ed4b950c0b3b728342e Mon Sep 17 00:00:00 2001 From: Pratik Mota Date: Sun, 2 Jun 2024 14:37:15 +0530 Subject: [PATCH] Adding test cases for new math functions --- tests/misc.rye | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/misc.rye b/tests/misc.rye index 1c1eaa7a..a23158ca 100644 --- a/tests/misc.rye +++ b/tests/misc.rye @@ -464,6 +464,31 @@ section "Math functions" equal { do\in math { erfcinv -1 } } "-Inf" equal { do\in math { erfcinv 1.5 } } "NaN" } + + group "exp" + mold\nowrap "" + { { string } } + { + equal { do\in math { exp 2 } } 7.38905609893065 + } + group "exp2" + mold\nowrap "" + { { string } } + { + equal { do\in math { exp2 5 } } 32.000000 + } + group "expm1" + mold\nowrap "" + { { string } } + { + equal { do\in math { expm1 2 } } 6.389056 + } + group "fma" + mold\nowrap "" + { { string } } + { + equal { do\in math { fma 2.0 4.0 6.0 } } 14.00 + } }