Browse Source

Merge branch 'production' into 'main'

Production in Main

See merge request fdai7812/theadmirals!6
main
fdai7791 11 months ago
parent
commit
d6568422a7
  1. 35
      test/test_convert_time.c

35
test/test_convert_time.c

@ -30,3 +30,38 @@ void test_convert_time_hourtomin(void){
result = converter_hour_to_min(1.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
void test_convert_time_mintohour(void){
double expectedResult = 1.0;
double result;
result = converter_min_to_hour(60.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
void test_convert_time_hourinsec(void){
double expectedResult = 3600.0;
double result;
result = converter_hour_in_sec(1.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
void test_convert_time_sectohour(void){
double expectedResult = 1.0;
double result;
result = converter_sec_in_hour(3600.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
void test_convert_time_daysinyears(void){
double expectedResult = 1.0;
double result;
result = converter_days_to_years(365.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
void test_convert_time_yearsindays(void){
double expectedResult = 365.0;
double result;
result = converter_years_to_days(1.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
Loading…
Cancel
Save