diff --git a/test/conversionOfNumbers/test_conversionOfNumbers.c b/test/conversionOfNumbers/test_conversionOfNumbers.c new file mode 100644 index 0000000..2490896 --- /dev/null +++ b/test/conversionOfNumbers/test_conversionOfNumbers.c @@ -0,0 +1,17 @@ +#include "unity.h" +#include "conversionOfNumbers.h" + +void setUp(){} +void tearDown(){} + +void test_convert2ToBinaryStr(){ + //arrange + char* result; + char expected[] = "10"; + + //act + result = convertIntToBinaryStr(2); + + //assert + TEST_ASSERT_EQUAL_STRING(expected, result); +} \ No newline at end of file