From 1512e1941981a707136827c7a243fd3d5704868f Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Tue, 6 Feb 2024 16:05:12 +0000 Subject: [PATCH] Added unittest for logarithmFunction --- 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 e3b4388..2bdfaf1 100644 --- a/src/test/c/test_taschenrechner.c +++ b/src/test/c/test_taschenrechner.c @@ -132,4 +132,11 @@ void test_tangentFunction(void) { TEST_ASSERT_EQUAL_FLOAT(0.0, tangentFunction(0.0)); } +// Logarithm function +void test_logarithmFunction(void) { + // Your test code here + TEST_ASSERT_EQUAL_FLOAT(1.0, logarithmFunction(10.0)); +} + + #endif // TEST