diff --git a/test/conversionOfNumbers/test_conversionOfNumbers.c b/test/conversionOfNumbers/test_conversionOfNumbers.c index b9a0429..db390e7 100644 --- a/test/conversionOfNumbers/test_conversionOfNumbers.c +++ b/test/conversionOfNumbers/test_conversionOfNumbers.c @@ -199,6 +199,18 @@ void test_convertBinaryStr10110ToInt22(){ //act result = convertBinaryStrToInt("10110"); + //assert + TEST_ASSERT_EQUAL_UINT(expected, result); +} + +void test_convertHexStr2A3ToInt675(){ + //arrange + unsigned int result; + unsigned int expected = 675; + + //act + result = convertHexStrToInt("2A3"); + //assert TEST_ASSERT_EQUAL_UINT(expected, result); } \ No newline at end of file