|
@ -0,0 +1,18 @@ |
|
|
|
|
|
#include "../src/convert_M_in_KM.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_meter_to_kilometer(void) { |
|
|
|
|
|
// Testfall 1: 1000 Meter sollten 1 Kilometer sein |
|
|
|
|
|
double value_1 = 1000.0; |
|
|
|
|
|
double expectedResult_1 = 1.0; |
|
|
|
|
|
double result_1 = meter_to_kilometer(value_1); |
|
|
|
|
|
TEST_ASSERT_EQUAL_FLOAT(expectedResult_1, result_1); |
|
|
|
|
|
} |