|
@ -22,4 +22,11 @@ void test_cm_to_meter2(void) { |
|
|
float expectedResult_2 = 0.5; |
|
|
float expectedResult_2 = 0.5; |
|
|
float result_2 = cm_to_meter(value_2); |
|
|
float result_2 = cm_to_meter(value_2); |
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); |
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); |
|
|
|
|
|
} |
|
|
|
|
|
void test_cm_to_meter3(void) { |
|
|
|
|
|
// Testfall 3: 200 cm sollten 2 Meter sein |
|
|
|
|
|
float value_3 = 200.0; |
|
|
|
|
|
float expectedResult_3 = 2.0; |
|
|
|
|
|
float result_3 = cm_to_meter(value_3); |
|
|
|
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_3, result_3); |
|
|
} |
|
|
} |