diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-23 23:20:29 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-23 23:20:29 +0100 |
commit | 5fc656a1b8acd8e1207bd64dfbb5d1bdcde81ec8 (patch) | |
tree | ff2753fd1a1871106cb8b190d8c6e60a392986cb /tests | |
parent | 91149f0acc2a4ec4dcce7d57987e17e7e9d74b6d (diff) | |
download | weechat-5fc656a1b8acd8e1207bd64dfbb5d1bdcde81ec8.zip |
api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/core/test-core-string.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/core/test-core-string.cpp b/tests/unit/core/test-core-string.cpp index 24a557cb5..3dbcfbc78 100644 --- a/tests/unit/core/test-core-string.cpp +++ b/tests/unit/core/test-core-string.cpp @@ -566,6 +566,9 @@ TEST(CoreString, Comparison) LONGS_EQUAL(1, string_strcmp_ignore_chars (".abc..abc", "..", ".", 0)); LONGS_EQUAL(-1, string_strcmp_ignore_chars (".", "..abcabc", ".", 0)); LONGS_EQUAL(0, string_strcmp_ignore_chars (".", ".", ".", 0)); + LONGS_EQUAL(-1, string_strcmp_ignore_chars ("è", "é", "", 0)); + LONGS_EQUAL(-1, string_strcmp_ignore_chars ("è", "É", "", 0)); + LONGS_EQUAL(-1, string_strcmp_ignore_chars ("è", "é", "", 1)); } /* |