mirror of
https://github.com/profanity-im/profanity.git
synced 2024-10-06 20:03:46 -04:00
Added muc remove invite test
This commit is contained in:
parent
63b3299b06
commit
a472ce653f
@ -11,8 +11,20 @@ void test_muc_add_invite(void **state)
|
||||
char *room = "room@conf.server";
|
||||
muc_init();
|
||||
muc_add_invite(room);
|
||||
|
||||
|
||||
gboolean invite_exists = muc_invites_include(room);
|
||||
|
||||
assert_true(invite_exists);
|
||||
}
|
||||
|
||||
void test_muc_remove_invite(void **state)
|
||||
{
|
||||
char *room = "room@conf.server";
|
||||
muc_init();
|
||||
muc_add_invite(room);
|
||||
muc_remove_invite(room);
|
||||
|
||||
gboolean invite_exists = muc_invites_include(room);
|
||||
|
||||
assert_false(invite_exists);
|
||||
}
|
||||
|
@ -1 +1,2 @@
|
||||
void test_muc_add_invite(void **state);
|
||||
void test_muc_remove_invite(void **state);
|
||||
|
@ -430,6 +430,7 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
const UnitTest muc_tests[] = {
|
||||
unit_test(test_muc_add_invite),
|
||||
unit_test(test_muc_remove_invite),
|
||||
};
|
||||
|
||||
int bak, bak2, new;
|
||||
|
Loading…
Reference in New Issue
Block a user