244 CX_TEST_ASSERT(0 != cx_strcmp(str, CX_STR("Compare This"))); |
244 CX_TEST_ASSERT(0 != cx_strcmp(str, CX_STR("Compare This"))); |
245 CX_TEST_ASSERT(0 > cx_strcmp(str, CX_STR("compare tool"))); |
245 CX_TEST_ASSERT(0 > cx_strcmp(str, CX_STR("compare tool"))); |
246 CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("compare shit"))); |
246 CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("compare shit"))); |
247 CX_TEST_ASSERT(0 > cx_strcmp(str, CX_STR("compare this not"))); |
247 CX_TEST_ASSERT(0 > cx_strcmp(str, CX_STR("compare this not"))); |
248 CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("compare"))); |
248 CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("compare"))); |
|
249 CX_TEST_ASSERT(0 > cx_strcmp(str, CX_STR("lex"))); |
|
250 CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("another lex test"))); |
|
251 CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("Lex"))); |
|
252 CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("Another lex test"))); |
249 |
253 |
250 cxstring str2 = CX_STR("Compare This"); |
254 cxstring str2 = CX_STR("Compare This"); |
251 CX_TEST_ASSERT(0 != cx_strcmp_p(&str, &str2)); |
255 CX_TEST_ASSERT(0 != cx_strcmp_p(&str, &str2)); |
252 str2 = CX_STR("compare this"); |
256 str2 = CX_STR("compare this"); |
253 CX_TEST_ASSERT(0 == cx_strcmp_p(&str, &str2)); |
257 CX_TEST_ASSERT(0 == cx_strcmp_p(&str, &str2)); |
263 CX_TEST_ASSERT(0 == cx_strcasecmp(str, CX_STR("Compare This"))); |
267 CX_TEST_ASSERT(0 == cx_strcasecmp(str, CX_STR("Compare This"))); |
264 CX_TEST_ASSERT(0 > cx_strcasecmp(str, CX_STR("compare tool"))); |
268 CX_TEST_ASSERT(0 > cx_strcasecmp(str, CX_STR("compare tool"))); |
265 CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("compare shit"))); |
269 CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("compare shit"))); |
266 CX_TEST_ASSERT(0 > cx_strcasecmp(str, CX_STR("compare this not"))); |
270 CX_TEST_ASSERT(0 > cx_strcasecmp(str, CX_STR("compare this not"))); |
267 CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("compare"))); |
271 CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("compare"))); |
|
272 CX_TEST_ASSERT(0 > cx_strcasecmp(str, CX_STR("lex"))); |
|
273 CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("another lex test"))); |
|
274 CX_TEST_ASSERT(0 > cx_strcasecmp(str, CX_STR("Lex"))); |
|
275 CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("Another lex test"))); |
268 |
276 |
269 cxstring str2 = CX_STR("Compare This"); |
277 cxstring str2 = CX_STR("Compare This"); |
270 CX_TEST_ASSERT(0 == cx_strcasecmp_p(&str, &str2)); |
278 CX_TEST_ASSERT(0 == cx_strcasecmp_p(&str, &str2)); |
271 str2 = CX_STR("Compare Tool"); |
279 str2 = CX_STR("Compare Tool"); |
272 CX_TEST_ASSERT(0 > cx_strcasecmp_p(&str, &str2)); |
280 CX_TEST_ASSERT(0 > cx_strcasecmp_p(&str, &str2)); |