|
|
@ -15,4 +15,11 @@ void test_cm_to_meter(void) { |
|
|
|
float expectedResult_1 = 1.0; |
|
|
|
float result_1 = cm_to_meter(value_1); |
|
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_1, result_1); |
|
|
|
} |
|
|
|
void test_cm_to_meter2(void) { |
|
|
|
// Testfall 2: 50 cm sollten 0.5 Meter sein |
|
|
|
float value_2 = 50.0; |
|
|
|
float expectedResult_2 = 0.5; |
|
|
|
float result_2 = cm_to_meter(value_2); |
|
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); |
|
|
|
} |