diff --git a/test/conversionOfNumbers/test_conversionOfNumbers.c b/test/conversionOfNumbers/test_conversionOfNumbers.c index c3f6ffe..4ab94ea 100644 --- a/test/conversionOfNumbers/test_conversionOfNumbers.c +++ b/test/conversionOfNumbers/test_conversionOfNumbers.c @@ -114,4 +114,17 @@ void test_convertBinaryStr1001ToInt9(){ //assert TEST_ASSERT_EQUAL_UINT(expected, result); +} + +void test_convert3ToHexStr3(){ + //arrange + char* result; + char expected[] = "3"; + + //act + result = convertIntToHex(3); + + //assert + TEST_ASSERT_EQUAL_STRING(expected, result); + free(result); } \ No newline at end of file