mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
tests: add tests on IRC command ACCOUNT with colon before the account name
This commit is contained in:
@@ -443,8 +443,14 @@ TEST(IrcProtocolWithServer, account_without_account_notify_cap)
|
||||
server_recv (":alice!user@host ACCOUNT *");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
|
||||
server_recv (":alice!user@host ACCOUNT :*");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
|
||||
server_recv (":alice!user@host ACCOUNT new_account");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
|
||||
server_recv (":alice!user@host ACCOUNT :new_account");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -469,11 +475,17 @@ TEST(IrcProtocolWithServer, account_with_account_notify_cap)
|
||||
server_recv (":alice!user@host ACCOUNT new_account");
|
||||
STRCMP_EQUAL("new_account", ptr_nick->account);
|
||||
|
||||
server_recv (":alice!user@host ACCOUNT new_account2");
|
||||
server_recv (":alice!user@host ACCOUNT :new_account2");
|
||||
STRCMP_EQUAL("new_account2", ptr_nick->account);
|
||||
|
||||
server_recv (":alice!user@host ACCOUNT *");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
|
||||
server_recv (":alice!user@host ACCOUNT :new_account3");
|
||||
STRCMP_EQUAL("new_account3", ptr_nick->account);
|
||||
|
||||
server_recv (":alice!user@host ACCOUNT :*");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user