Browse Source

Commited Unit Test m in km

remotes/origin/feature
Leon Wolf 11 months ago
parent
commit
a1c14e6d25
  1. 7
      test/test_convert_M_in_KM.c

7
test/test_convert_M_in_KM.c

@ -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);
} }
Loading…
Cancel
Save