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.

25 lines
549 B

11 months ago
11 months ago
  1. #include "../src/convert_time.h"
  2. #include "unity.h"
  3. #include "limits.h"
  4. void setUp(void) {
  5. // set stuff up here
  6. }
  7. void tearDown(void) {
  8. // clean stuff up here
  9. }
  10. void test_convert_time_sectomin(void){
  11. double expectedResult = 1.0;
  12. double result;
  13. result = converter_sec_to_min(60.0);
  14. TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
  15. }
  16. void test_convert_time_mintosec(void){
  17. double expectedResult = 60.0;
  18. double result;
  19. result = converter_min_to_sec(1.0);
  20. TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result);
  21. }