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

#ifdef TEST
#include "unity.h"
#include "outputHandling.h"
char string[100]= {0};
void setUp(void)
{
}
void tearDown(void)
{
}
void test_outputHandling_buildOctString(void)
{
buildOctString(string, 5555555);
TEST_ASSERT_EQUAL_STRING("25142543", string);
}
void test_outputHandling_buildHexString(void)
{
buildHexString(string, 5555555);
TEST_ASSERT_EQUAL_STRING("0x54C563", string);
}
#endif // TEST