Browse Source

added test for determining binary string length

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

12
test/conversionOfNumbers/test_conversionOfNumbers.c

@ -14,4 +14,16 @@ void test_convert2ToBinaryStr(){
//assert
TEST_ASSERT_EQUAL_STRING(expected, result);
}
void test_binaryStringLengthOfInput5is3(){
//arrange
int result;
int expected = 3;
//act
result = binaryStrLen(5);
//assert
TEST_ASSERT_EQUAL_INT(expected, result);
}
Loading…
Cancel
Save