summaryrefslogtreecommitdiff
path: root/tests/unit/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-16 17:26:33 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commitdcbf534d53775ede1407ba1eaa1c3f4d2f1d135e (patch)
tree0da7d0465d7328937fad260152c3a65ec466001f /tests/unit/plugins
parentc8329da6e0c600e00efeb3744a3ee63c953424fe (diff)
downloadweechat-dcbf534d53775ede1407ba1eaa1c3f4d2f1d135e.zip
irc: use parsed command parameters in "353" command callback
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index a8eafa329..49f28d7e7 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -3267,15 +3267,17 @@ TEST(IrcProtocolWithServer, 353)
STRCMP_EQUAL("bob", ptr_channel->nicks->next_nick->name);
POINTERS_EQUAL(NULL, ptr_channel->nicks->next_nick->next_nick);
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 353");
- CHECK_ERROR_ARGS("353", 2, 5);
+ CHECK_ERROR_PARAMS("353", 0, 3);
RECV(":server 353 alice");
- CHECK_ERROR_ARGS("353", 3, 5);
+ CHECK_ERROR_PARAMS("353", 1, 3);
RECV(":server 353 alice #test");
- CHECK_ERROR_ARGS("353", 4, 5);
+ CHECK_ERROR_PARAMS("353", 2, 3);
RECV(":server 353 alice =");
- CHECK_ERROR_ARGS("353", 4, 5);
+ CHECK_ERROR_PARAMS("353", 2, 3);
+ RECV(":server 353 alice = #test");
+ CHECK_ERROR_PARSE("353", ":server 353 alice = #test");
RECV(":server 353 alice #test :alice");
CHECK_NO_MSG;