You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
740 B

#include "../src/convert_time.h"
#include "unity.h"
#include "limits.h"
void setUp(void) {
// set stuff up here
}
void tearDown(void) {
// clean stuff up here
}
void test_convert_time_sectomin(void){
double expectedResult = 1.0;
double result;
result = converter_sec_to_min(60.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
void test_convert_time_mintosec(void){
double expectedResult = 60.0;
double result;
result = converter_min_to_sec(1.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}
void test_convert_time_hourtomin(void){
double expectedResult = 60.0;
double result;
result = converter_hour_to_min(1.0);
TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
}