|
|
@ -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); |
|
|
|
} |