Browse Source

added test for implementation of binaryStrLen function

remotes/origin/conversionOfNumbers
Laurin 11 months ago
parent
commit
3b81a29e10
  1. 12
      test/conversionOfNumbers/test_conversionOfNumbers.c

12
test/conversionOfNumbers/test_conversionOfNumbers.c

@ -39,3 +39,15 @@ 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);
}
Loading…
Cancel
Save