From 4d1523f71f8acc9ae4078abb60b69c56eb559ce4 Mon Sep 17 00:00:00 2001 From: Pratik Mota Date: Sun, 28 Jul 2024 18:17:25 +0530 Subject: [PATCH] Adding test cases --- tests/misc.rye | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/misc.rye b/tests/misc.rye index 04928d7b..fc62e4c8 100644 --- a/tests/misc.rye +++ b/tests/misc.rye @@ -531,6 +531,24 @@ section "Math functions" { equal { do\in math { trunc 1.234567 } } 1.000000 } + group "log10" + mold\nowrap "" + { { integer decimal } } + { + equal { do\in math { log10 100 } } 2.000000 + } + group "log1" + mold\nowrap "" + { { integer decimal } } + { + equal { do\in math { log1p 10.58 } } 2.449279472144849 + } + group "logb" + mold\nowrap "" + { { integer decimal } } + { + equal { do\in math { logb 123.45 } } 6.000000 + } }