diff --git a/test/conversionOfNumbers/test_conversionOfNumbers.c b/test/conversionOfNumbers/test_conversionOfNumbers.c index 114b83a..2a4e777 100644 --- a/test/conversionOfNumbers/test_conversionOfNumbers.c +++ b/test/conversionOfNumbers/test_conversionOfNumbers.c @@ -38,4 +38,16 @@ void test_binaryStringLengthOfInput0is1(){ //assert TEST_ASSERT_EQUAL_INT(expected, result); +} + +void test_convert10ToBinaryStr(){ + //arrange + char* result; + char expected[] = "1010"; + + //act + result = convertIntToBinaryStr(10); + + //assert + TEST_ASSERT_EQUAL_STRING(expected, result); } \ No newline at end of file