From 999af488024eeb2b2a03322ab482b1bde3952cf9 Mon Sep 17 00:00:00 2001 From: Sophia Weber Date: Sun, 28 Jan 2024 18:46:57 +0100 Subject: [PATCH] Create Hex Output Test --- src/outputHandling.h | 2 ++ test/test_outputHandling.c | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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