@ -3,7 +3,7 @@
#include "inputHandling.h"
void buildHexString(char* string, int num) {
sprintf(string, "%X", num);
sprintf(string, "0x%X", num);
}
void buildOctString(char* string, int num) {
@ -20,4 +20,10 @@ void test_outputHandling_buildOctString(void)
TEST_ASSERT_EQUAL_STRING("25142543", string);
void test_outputHandling_buildHexString(void)
{
buildHexString(string, 5555555);
TEST_ASSERT_EQUAL_STRING("0x54C563", string);
#endif // TEST