diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-24 16:25:20 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-24 16:25:20 +0100 |
commit | 083032972dc75ffde841ac77dce4d49093c9ead7 (patch) | |
tree | 7acac69f900ac8b6514ad979301e5562fd9d2dd6 /tests/unit/plugins/irc | |
parent | 5fc656a1b8acd8e1207bd64dfbb5d1bdcde81ec8 (diff) | |
download | weechat-083032972dc75ffde841ac77dce4d49093c9ead7.zip |
api: return arithmetic difference between chars in string comparison functions
Return code is changed for the following functions:
- string_strcasecmp
- string_strcasecmp_range
- string_strncasecmp
- string_strncasecmp_range
- string_strcmp_ignore_chars
- utf8_charcmp
- utf8_charcasecmp
- utf8_charcasecmp_range
Diffstat (limited to 'tests/unit/plugins/irc')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-join.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/plugins/irc/test-irc-join.cpp b/tests/unit/plugins/irc/test-irc-join.cpp index 54b8076b0..2ab88910d 100644 --- a/tests/unit/plugins/irc/test-irc-join.cpp +++ b/tests/unit/plugins/irc/test-irc-join.cpp @@ -112,7 +112,7 @@ TEST(IrcJoin, CompateJoinChannel) LONGS_EQUAL(0, irc_join_compare_join_channel (NULL, &join_chan1, &join_chan2)); join_chan1.name = strdup ("#abc"); - LONGS_EQUAL(1, irc_join_compare_join_channel (NULL, &join_chan1, &join_chan2)); + LONGS_EQUAL(35, irc_join_compare_join_channel (NULL, &join_chan1, &join_chan2)); join_chan2.name = strdup ("#abc"); LONGS_EQUAL(0, irc_join_compare_join_channel (NULL, &join_chan1, &join_chan2)); @@ -129,7 +129,7 @@ TEST(IrcJoin, CompateJoinChannel) free (join_chan2.name); join_chan2.name = strdup ("#def"); - LONGS_EQUAL(-1, irc_join_compare_join_channel (NULL, &join_chan1, &join_chan2)); + LONGS_EQUAL(-3, irc_join_compare_join_channel (NULL, &join_chan1, &join_chan2)); free (join_chan1.name); free (join_chan1.key); |