From 44d67a7e70c81d5bb167a02686d8d052ccf155e0 Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Tue, 6 Feb 2024 16:08:39 +0000 Subject: [PATCH] Added unittest for logarithmBase2Function --- src/test/c/test_taschenrechner.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/c/test_taschenrechner.c b/src/test/c/test_taschenrechner.c index f3f7517..d67d94a 100644 --- a/src/test/c/test_taschenrechner.c +++ b/src/test/c/test_taschenrechner.c @@ -144,4 +144,11 @@ void test_naturalLogarithmFunction(void) { TEST_ASSERT_EQUAL_FLOAT(0.0, naturalLogarithmFunction(1.0)); } +// Logarithm with base 2 function +void test_logarithmBase2Function(void) { + // Your test code here + TEST_ASSERT_EQUAL_FLOAT(3.0, logarithmBase2Function(8.0)); +} + + #endif // TEST