mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 21:06:38 +02:00
api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user