|
|
@ -114,4 +114,17 @@ void test_convertBinaryStr1001ToInt9(){ |
|
|
|
|
|
|
|
//assert |
|
|
|
TEST_ASSERT_EQUAL_UINT(expected, result); |
|
|
|
} |
|
|
|
|
|
|
|
void test_convert3ToHexStr3(){ |
|
|
|
//arrange |
|
|
|
char* result; |
|
|
|
char expected[] = "3"; |
|
|
|
|
|
|
|
//act |
|
|
|
result = convertIntToHex(3); |
|
|
|
|
|
|
|
//assert |
|
|
|
TEST_ASSERT_EQUAL_STRING(expected, result); |
|
|
|
free(result); |
|
|
|
} |