summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-16 09:28:11 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit3c7d4b0516d51b45d04fd7414df0edb736b73d89 (patch)
tree9664cae30e3475937a5bdb3c525a45ee626e7cde /tests/unit
parent572bcc2c597d4b60595bf22dc48fa0931ddd6696 (diff)
downloadweechat-3c7d4b0516d51b45d04fd7414df0edb736b73d89.zip
irc: use parsed command parameters in "312" command callback
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index da5ce9eda..f1ce83f75 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2456,15 +2456,15 @@ TEST(IrcProtocolWithServer, 312)
{
SRV_INIT;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 312");
- CHECK_ERROR_ARGS("312", 2, 6);
+ CHECK_ERROR_PARAMS("312", 0, 4);
RECV(":server 312 alice");
- CHECK_ERROR_ARGS("312", 3, 6);
+ CHECK_ERROR_PARAMS("312", 1, 4);
RECV(":server 312 alice bob");
- CHECK_ERROR_ARGS("312", 4, 6);
+ CHECK_ERROR_PARAMS("312", 2, 4);
RECV(":server 312 alice bob server");
- CHECK_ERROR_ARGS("312", 5, 6);
+ CHECK_ERROR_PARAMS("312", 3, 4);
RECV(":server 312 alice bob server :https://example.com/");
CHECK_SRV("-- [bob] server (https://example.com/)");