Browse Source

Commited Unit Test cm in m

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

7
test/test_convert_CM_in_M.c

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