mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 18:16:22 +00:00
Added muc tests
This commit is contained in:
18
tests/test_muc.c
Normal file
18
tests/test_muc.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <setjmp.h>
|
||||
#include <cmocka.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "muc.h"
|
||||
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user