diff options
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 89acce28d..c329f9dbe 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -1881,9 +1881,13 @@ TEST(IrcProtocolWithServer, topic) ptr_channel = ptr_server->channels; POINTERS_EQUAL(NULL, ptr_channel->topic); - /* not enough arguments */ + /* not enough parameters */ RECV(":alice!user@host TOPIC"); - CHECK_ERROR_ARGS("topic", 2, 3); + CHECK_ERROR_PARAMS("topic", 0, 1); + + /* missing nick */ + RECV("TOPIC #test :new topic"); + CHECK_ERROR_NICK("topic"); POINTERS_EQUAL(NULL, ptr_channel->topic); |