From 269428aa8cc076967395512d3383bc8e1944c3f8 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 20:46:24 +0100 Subject: [PATCH] lograrithm funktion test --- src/test/test_funktionen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 0f0b22c..39eb3d5 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -37,4 +37,10 @@ void test_absolute(void) { TEST_ASSERT_EQUAL_FLOAT(5.0, result); } +void test_logarithm(void) { + float result = logarithm(100.0); + TEST_ASSERT_FLOAT_WITHIN(0.000001, 2.0, result); + // Add more test cases for different inputs and expected outputs +} + #endif \ No newline at end of file