diff --git a/src/outputHandling.h b/src/outputHandling.h index 4647485..77ff505 100644 --- a/src/outputHandling.h +++ b/src/outputHandling.h @@ -3,6 +3,8 @@ #include "inputHandling.h" +extern void buildHexString(char* string, int num); +extern void buildOctString(char* string, int num); extern void showResult(calc_op* res); #endif // OUTPUTHANDLING_H diff --git a/test/test_outputHandling.c b/test/test_outputHandling.c index 8735cd7..7ea50e5 100644 --- a/test/test_outputHandling.c +++ b/test/test_outputHandling.c @@ -4,6 +4,8 @@ #include "outputHandling.h" +char string[100]= {0}; + void setUp(void) { } @@ -12,9 +14,10 @@ void tearDown(void) { } -void test_outputHandling_NeedToImplement(void) +void test_outputHandling_buildOctString(void) { - TEST_IGNORE_MESSAGE("Need to Implement outputHandling"); + buildOctString(string, 5555555); + TEST_ASSERT_EQUAL_STRING("25142543", string); } #endif // TEST