|
@ -22,4 +22,11 @@ void test_meter_to_kilometer2(void) { |
|
|
double expectedResult_2 = 0.5; |
|
|
double expectedResult_2 = 0.5; |
|
|
double result_2 = meter_to_kilometer(value_2); |
|
|
double result_2 = meter_to_kilometer(value_2); |
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); |
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_2, result_2); |
|
|
|
|
|
} |
|
|
|
|
|
void test_meter_to_kilometer3(void) { |
|
|
|
|
|
// Testfall 3: 1500 Meter sollten 1.5 Kilometer sein |
|
|
|
|
|
double value_3 = 1500.0; |
|
|
|
|
|
double expectedResult_3 = 1.5; |
|
|
|
|
|
double result_3 = meter_to_kilometer(value_3); |
|
|
|
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_3, result_3); |
|
|
} |
|
|
} |