|
@ -68,4 +68,10 @@ void test_ceilingValue(void) { |
|
|
// Add more test cases for different inputs and expected outputs |
|
|
// 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 |
|
|
#endif |