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.

29 lines
424 B

  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "outputHandling.h"
  4. char string[100]= {0};
  5. void setUp(void)
  6. {
  7. }
  8. void tearDown(void)
  9. {
  10. }
  11. void test_outputHandling_buildOctString(void)
  12. {
  13. buildOctString(string, 5555555);
  14. TEST_ASSERT_EQUAL_STRING("25142543", string);
  15. }
  16. void test_outputHandling_buildHexString(void)
  17. {
  18. buildHexString(string, 5555555);
  19. TEST_ASSERT_EQUAL_STRING("0x54C563", string);
  20. }
  21. #endif // TEST