summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc/test-irc-protocol.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-03-24 16:58:11 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-03-24 16:58:11 +0100
commitcecbad1803c9f4292a3d0ae2a5008b5c8eac8129 (patch)
treef7a6cfc9f36ed7b81003f0b544bbee61820fe969 /tests/unit/plugins/irc/test-irc-protocol.cpp
parent9fac350b3fd9eb9d7f0ed62c7d894c4b76e4fa74 (diff)
downloadweechat-cecbad1803c9f4292a3d0ae2a5008b5c8eac8129.zip
tests: add test with no arguments for AWAY command
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 1ca8b7706..c977f1eb9 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -363,8 +363,10 @@ TEST(IrcProtocolWithServer, away)
LONGS_EQUAL(0, ptr_nick->away);
server_recv (":alice!user@host AWAY :Holidays!");
-
LONGS_EQUAL(1, ptr_nick->away);
+
+ server_recv (":alice!user@host AWAY");
+ LONGS_EQUAL(0, ptr_nick->away);
}
/*