| 476 |
476 |
| 477 result = cx_strstr(str, ""); |
477 result = cx_strstr(str, ""); |
| 478 CX_TEST_ASSERT(result.length == str.length); |
478 CX_TEST_ASSERT(result.length == str.length); |
| 479 CX_TEST_ASSERT(0 == strcmp(result.ptr, str.ptr)); |
479 CX_TEST_ASSERT(0 == strcmp(result.ptr, str.ptr)); |
| 480 |
480 |
| 481 cxmutstr resultm = cx_strstr_m(longstr, longstrpattern); |
481 cxmutstr resultm = cx_strstr(longstr, longstrpattern); |
| 482 CX_TEST_ASSERT(resultm.length == longstrresult.length); |
482 CX_TEST_ASSERT(resultm.length == longstrresult.length); |
| 483 CX_TEST_ASSERT(0 == strcmp(resultm.ptr, longstrresult.ptr)); |
483 CX_TEST_ASSERT(0 == strcmp(resultm.ptr, longstrresult.ptr)); |
| 484 } |
484 } |
| 485 |
485 |
| 486 free(longstrc); |
486 free(longstrc); |