@ -190,3 +190,15 @@ void test_convert234ToHexStrEA(){
TEST_ASSERT_EQUAL_STRING(expected, result);
free(result);
}
void test_convertBinaryStr10110ToInt22(){
//arrange
unsigned int result;
unsigned int expected = 22;
//act
result = convertBinaryStrToInt("10110");
//assert
TEST_ASSERT_EQUAL_UINT(expected, result);