mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 10:46:22 +00:00
Added contact presence offline test
This commit is contained in:
@@ -100,3 +100,16 @@ void contact_string_when_default_resource(void **state)
|
||||
p_contact_free(contact);
|
||||
free(str);
|
||||
}
|
||||
|
||||
void contact_presence_offline(void **state)
|
||||
{
|
||||
PContact contact = p_contact_new("bob@server.com", "bob", NULL, "both",
|
||||
"is offline", FALSE);
|
||||
|
||||
const char *presence = p_contact_presence(contact);
|
||||
|
||||
assert_string_equal("offline", presence);
|
||||
|
||||
p_contact_free(contact);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user