From 5944e0daae382f49aa6537b0fe3887cc149ab666 Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Tue, 6 Feb 2024 15:58:22 +0000 Subject: [PATCH] Added unittest for squareRootFunction --- 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 cf6c739..a5dcd59 100644 --- a/src/test/c/test_taschenrechner.c +++ b/src/test/c/test_taschenrechner.c @@ -109,5 +109,10 @@ void test_ConTime(void) {//5 ms to s } +// Square root function +void test_squareRootFunction(void) { + TEST_ASSERT_EQUAL_FLOAT(2.0, squareRootFunction(4.0)); +} + #endif // TEST