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

@ -141,3 +141,15 @@ void test_convert12ToHexStrC(){
TEST_ASSERT_EQUAL_STRING(expected, result); TEST_ASSERT_EQUAL_STRING(expected, result);
free(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