From 8e56ff972e7cf1b6c3e7eda88aa47f28d24e8c2f Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Tue, 6 Feb 2024 16:10:16 +0000 Subject: [PATCH] Added unittest for exponentialFunction --- src/test/c/test_taschenrechner.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/c/test_taschenrechner.c b/src/test/c/test_taschenrechner.c index d67d94a..f51aaad 100644 --- a/src/test/c/test_taschenrechner.c +++ b/src/test/c/test_taschenrechner.c @@ -150,5 +150,10 @@ void test_logarithmBase2Function(void) { TEST_ASSERT_EQUAL_FLOAT(3.0, logarithmBase2Function(8.0)); } +// Exponential function +void test_exponentialFunction(void) { + // Your test code here + TEST_ASSERT_EQUAL_FLOAT(1.0, exponentialFunction(0.0)); +} #endif // TEST