From 32ba90e18374b0ce0d4a2f022b03011b52085661 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 21:59:17 +0100 Subject: [PATCH] test_absoluteDifference 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 86c3260..1ccee94 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -68,4 +68,10 @@ void test_ceilingValue(void) { // Add more test cases for different inputs and expected outputs } +void test_absoluteDifference(void) { + float result = absoluteDifference(8.0, 4.5); + TEST_ASSERT_FLOAT_WITHIN(0.000001, 3.5, result); + // Add more test cases for different inputs and expected outputs +} + #endif \ No newline at end of file