|
|
@ -0,0 +1,18 @@ |
|
|
|
#include "../src/convert_CM_in_M.h" |
|
|
|
#include "unity.h" |
|
|
|
#include "limits.h" |
|
|
|
|
|
|
|
void setUp(void) { |
|
|
|
// Set up resources here if needed |
|
|
|
} |
|
|
|
|
|
|
|
void tearDown(void) { |
|
|
|
// Clean up resources here if needed |
|
|
|
} |
|
|
|
void test_cm_to_meter(void) { |
|
|
|
// Testfall 1: 100 cm sollten 1 Meter sein |
|
|
|
float value_1 = 100.0; |
|
|
|
float expectedResult_1 = 1.0; |
|
|
|
float result_1 = cm_to_meter(value_1); |
|
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_1, result_1); |
|
|
|
} |