--- a/tests/test_string.c Wed Jan 01 14:03:49 2025 +0100 +++ b/tests/test_string.c Wed Jan 01 15:26:50 2025 +0100 @@ -246,6 +246,10 @@ CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("compare shit"))); CX_TEST_ASSERT(0 > cx_strcmp(str, CX_STR("compare this not"))); CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("compare"))); + CX_TEST_ASSERT(0 > cx_strcmp(str, CX_STR("lex"))); + CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("another lex test"))); + CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("Lex"))); + CX_TEST_ASSERT(0 < cx_strcmp(str, CX_STR("Another lex test"))); cxstring str2 = CX_STR("Compare This"); CX_TEST_ASSERT(0 != cx_strcmp_p(&str, &str2)); @@ -265,6 +269,10 @@ CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("compare shit"))); CX_TEST_ASSERT(0 > cx_strcasecmp(str, CX_STR("compare this not"))); CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("compare"))); + CX_TEST_ASSERT(0 > cx_strcasecmp(str, CX_STR("lex"))); + CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("another lex test"))); + CX_TEST_ASSERT(0 > cx_strcasecmp(str, CX_STR("Lex"))); + CX_TEST_ASSERT(0 < cx_strcasecmp(str, CX_STR("Another lex test"))); cxstring str2 = CX_STR("Compare This"); CX_TEST_ASSERT(0 == cx_strcasecmp_p(&str, &str2));