Browse Source

Commited Unit Test

remotes/origin/production
Jonas Zitzmann 11 months ago
parent
commit
5658f6af3e
  1. 7
      test/test_convert_kph_to_mps.c

7
test/test_convert_kph_to_mps.c

@ -16,3 +16,10 @@ void test_convert_kph_to_mps_kpstomps(void){
result = converter_kph_to_mps(3.6);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
void test_convert_kph_to_mps_mpstokps(void){
double expectedResult = 3.6;
double result;
result = converter_mps_to_kph(1.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
Loading…
Cancel
Save