Browse Source

added test for hexStrLen function

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

12
test/conversionOfNumbers/test_conversionOfNumbers.c

@ -140,4 +140,16 @@ void test_convert12ToHexStrC(){
//assert
TEST_ASSERT_EQUAL_STRING(expected, result);
free(result);
}
void test_binaryStringLengthOfInput256is3(){
//arrange
int result;
int expected = 3;
//act
result = hexStrLen(256);
//assert
TEST_ASSERT_EQUAL_INT(expected, result);
}
Loading…
Cancel
Save