8 #include "CUnit/CUnit.h"
25 char str[] =
" test trim! ";
26 char *predictValue =
"test trim!";
29 CU_ASSERT_TRUE(!strcmp(
Result, predictValue));
42 char *predictValue =
"";
44 CU_ASSERT_EQUAL(
Result, predictValue);
57 char *predictValue =
"";
59 CU_ASSERT_TRUE(!strcmp(
Result, predictValue));
char * trim(char *ptext)
Trimming whitespace.
void test_Trim_str_is_null()
Test case for input parameter is null.
void test_Trim_normal()
Test case for input parameter is normal.
void test_Trim_allspace()
Test case for input parameter is all space.
CU_TestInfo testcases_Trim[]
testcases for function Trim
static int Result
Result of calls.