diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-03-24 16:58:11 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-03-24 16:58:11 +0100 |
commit | cecbad1803c9f4292a3d0ae2a5008b5c8eac8129 (patch) | |
tree | f7a6cfc9f36ed7b81003f0b544bbee61820fe969 /tests/unit/plugins/irc/test-irc-protocol.cpp | |
parent | 9fac350b3fd9eb9d7f0ed62c7d894c4b76e4fa74 (diff) | |
download | weechat-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.cpp | 4 |
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); } /* |