|
@ -150,6 +150,18 @@ void test_hexStringLengthOfInput256is3(){ |
|
|
//act |
|
|
//act |
|
|
result = hexStrLen(256); |
|
|
result = hexStrLen(256); |
|
|
|
|
|
|
|
|
|
|
|
//assert |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_hexStringLengthOfInput255is2(){ |
|
|
|
|
|
//arrange |
|
|
|
|
|
int result; |
|
|
|
|
|
int expected = 2; |
|
|
|
|
|
|
|
|
|
|
|
//act |
|
|
|
|
|
result = hexStrLen(255); |
|
|
|
|
|
|
|
|
//assert |
|
|
//assert |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
} |
|
|
} |