|
|
@ -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 |