about summary refs log tree commit diff stats
path: root/tests/test_muc.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-30 23:32:52 +0000
committerJames Booth <boothj5@gmail.com>2014-01-30 23:32:52 +0000
commit63b3299b069a276994508859e4a8b6500f47df2e (patch)
tree5c992f3a2e0ac2a8b7c52adc2c903a21a181875e /tests/test_muc.c
parent0338d136e03fea2301b3386cfff346f852e5baef (diff)
downloadprofani-tty-63b3299b069a276994508859e4a8b6500f47df2e.tar.gz
Added muc tests
Diffstat (limited to 'tests/test_muc.c')
-rw-r--r--tests/test_muc.c18
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);
+}