Browse Source

test_absoluteDifference Funktion test

remotes/origin/Abdelrahman
Abdelrahman 11 months ago
parent
commit
32ba90e183
  1. 6
      src/test/test_funktionen.c

6
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
Loading…
Cancel
Save