Browse Source

added test for binaryStrLen in case input is negative

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

12
test/conversionOfNumbers/test_conversionOfNumbers.c

@ -50,4 +50,16 @@ void test_convert10ToBinaryStr1010(){
//assert
TEST_ASSERT_EQUAL_STRING(expected, result);
}
void test_binaryStringLengthOfInputNegative10is5(){
//arrange
int result;
int expected = 5;
//act
result = binaryStrLen(-10);
//assert
TEST_ASSERT_EQUAL_INT(expected, result);
}
Loading…
Cancel
Save