19 #include "CUnit/CUnit.h" 36 char str[] =
" test trim! ";
37 char *predictValue =
"test trim!";
40 CU_ASSERT_TRUE(!strcmp(Result, predictValue));
53 char *predictValue =
"";
55 CU_ASSERT_EQUAL(Result, predictValue);
68 char *predictValue =
"";
70 CU_ASSERT_TRUE(!strcmp(Result, predictValue));
static int Result
Result of calls.
void test_Trim_allspace()
Test case for input parameter is all space.
void test_Trim_normal()
Test case for input parameter is normal.
CU_TestInfo testcases_Trim[]
testcases for function Trim
char * trim(char *ptext)
Trimming whitespace.
void test_Trim_str_is_null()
Test case for input parameter is null.