diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-15 20:03:55 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 76b75ad5cdcd3cd418f2b2d4d09e7bb3043f8cd3 (patch) | |
tree | ecaccebc71392c465e919b260a2e70ccfce850b5 /tests/unit/plugins/irc/test-irc-protocol.cpp | |
parent | 74ceaa1a6882d777909822a4b8334c769127d70f (diff) | |
download | weechat-76b75ad5cdcd3cd418f2b2d4d09e7bb3043f8cd3.zip |
irc: use parsed command parameters in "numeric" command callback
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index e8df0487d..951d52e5c 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -579,7 +579,7 @@ TEST(IrcProtocolWithServer, recv_command_not_found) "abc def\""); RECV(":alice!user@host 099"); - CHECK_ERROR_ARGS("099", 2, 3); + CHECK_ERROR_PARAMS("099", 0, 1); RECV(":alice!user@host 099 abc def"); CHECK_SRV("-- abc def"); @@ -3762,13 +3762,13 @@ TEST(IrcProtocolWithServer, 903_907) { SRV_INIT; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 903"); - CHECK_ERROR_ARGS("903", 2, 3); + CHECK_ERROR_PARAMS("903", 0, 1); - /* not enough arguments */ + /* not enough parameters */ RECV(":server 907"); - CHECK_ERROR_ARGS("907", 2, 3); + CHECK_ERROR_PARAMS("907", 0, 1); RECV(":server 903 alice ok"); CHECK_SRV("-- ok"); @@ -3793,21 +3793,21 @@ TEST(IrcProtocolWithServer, 902_904_905_906) { SRV_INIT; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 902"); - CHECK_ERROR_ARGS("902", 2, 3); + CHECK_ERROR_PARAMS("902", 0, 1); - /* not enough arguments */ + /* not enough parameters */ RECV(":server 904"); - CHECK_ERROR_ARGS("904", 2, 3); + CHECK_ERROR_PARAMS("904", 0, 1); - /* not enough arguments */ + /* not enough parameters */ RECV(":server 905"); - CHECK_ERROR_ARGS("905", 2, 3); + CHECK_ERROR_PARAMS("905", 0, 1); - /* not enough arguments */ + /* not enough parameters */ RECV(":server 906"); - CHECK_ERROR_ARGS("906", 2, 3); + CHECK_ERROR_PARAMS("906", 0, 1); RECV(":server 902 alice error"); CHECK_SRV("-- error"); |