|
@ -162,6 +162,18 @@ void test_hexStringLengthOfInput255is2(){ |
|
|
//act |
|
|
//act |
|
|
result = hexStrLen(255); |
|
|
result = hexStrLen(255); |
|
|
|
|
|
|
|
|
|
|
|
//assert |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_hexStringLengthOfInput0is1(){ |
|
|
|
|
|
//arrange |
|
|
|
|
|
int result; |
|
|
|
|
|
int expected = 1; |
|
|
|
|
|
|
|
|
|
|
|
//act |
|
|
|
|
|
result = hexStrLen(0); |
|
|
|
|
|
|
|
|
//assert |
|
|
//assert |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
} |
|
|
} |