Browse Source

Commited Unit Test cm in m

remotes/origin/feature
Leon Wolf 11 months ago
parent
commit
90929037ef
  1. 7
      test/test_convert_CM_in_M.c

7
test/test_convert_CM_in_M.c

@ -23,3 +23,10 @@ void test_cm_to_meter2(void) {
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);
}
Loading…
Cancel
Save