summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-12-24 16:25:20 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-12-24 16:25:20 +0100
commit083032972dc75ffde841ac77dce4d49093c9ead7 (patch)
tree7acac69f900ac8b6514ad979301e5562fd9d2dd6 /tests/unit/plugins/irc
parent5fc656a1b8acd8e1207bd64dfbb5d1bdcde81ec8 (diff)
downloadweechat-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.cpp4
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);