tests: add tests on IRC command ACCOUNT with colon before the account name
This commit is contained in:
parent
eba9c31da0
commit
e41eeaf203
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user