diff options
author | James Booth <boothj5@gmail.com> | 2014-01-30 23:32:52 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-30 23:32:52 +0000 |
commit | 63b3299b069a276994508859e4a8b6500f47df2e (patch) | |
tree | 5c992f3a2e0ac2a8b7c52adc2c903a21a181875e /tests/test_muc.c | |
parent | 0338d136e03fea2301b3386cfff346f852e5baef (diff) | |
download | profani-tty-63b3299b069a276994508859e4a8b6500f47df2e.tar.gz |
Added muc tests
Diffstat (limited to 'tests/test_muc.c')
-rw-r--r-- | tests/test_muc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test_muc.c b/tests/test_muc.c new file mode 100644 index 00000000..42a27931 --- /dev/null +++ b/tests/test_muc.c @@ -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); +} |