From 040a693915003abf0f8627403c76002a13e3c79e Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 22:13:01 +0100 Subject: [PATCH] average Funktion test --- src/test/test_funktionen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 4f467f9..28788a2 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -65,26 +65,26 @@ void test_floorValue(void) { void test_ceilingValue(void) { float result = ceilingValue(5.2); TEST_ASSERT_EQUAL_FLOAT(6.0, result); - // 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 } void test_maximum(void) { float result = maximum(5.0, 9.0); TEST_ASSERT_FLOAT_WITHIN(0.000001, 9.0, result); - // Add more test cases for different inputs and expected outputs } void test_minimum(void) { float result = minimum(5.0, 9.0); TEST_ASSERT_FLOAT_WITHIN(0.000001, 5.0, result); - // Add more test cases for different inputs and expected outputs } +void test_average(void) { + float result = average(5.0, 9.0); + TEST_ASSERT_FLOAT_WITHIN(0.000001, 7.0, result); +} #endif \ No newline at end of file