summaryrefslogtreecommitdiff
path: root/tests/availability-cmp.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-03-17 14:44:10 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-03-17 14:44:10 +0000
commit85aa079ae7e85f5e7ea4486e0d9c39440506dbef (patch)
tree16e4568be48945e03ec73a6a07d0148099abe1a3 /tests/availability-cmp.c
parent07a1c96e574ce45fd82f4919c78df11ddc16f683 (diff)
downloadtelepathy-glib-85aa079ae7e85f5e7ea4486e0d9c39440506dbef.tar.gz
tests: remove test- prefix from all sources
As well as making tab completion work better, this means .gitignore can be much simpler.
Diffstat (limited to 'tests/availability-cmp.c')
-rw-r--r--tests/availability-cmp.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/availability-cmp.c b/tests/availability-cmp.c
new file mode 100644
index 000000000..56ce82851
--- /dev/null
+++ b/tests/availability-cmp.c
@@ -0,0 +1,16 @@
+#include <glib.h>
+#include <telepathy-glib/connection.h>
+
+int main (int argc, char **argv)
+{
+ g_assert (tp_connection_presence_type_cmp_availability (
+ TP_CONNECTION_PRESENCE_TYPE_AWAY, TP_CONNECTION_PRESENCE_TYPE_UNSET) == 1);
+
+ g_assert (tp_connection_presence_type_cmp_availability (
+ TP_CONNECTION_PRESENCE_TYPE_BUSY, TP_CONNECTION_PRESENCE_TYPE_AVAILABLE) == -1);
+
+ g_assert (tp_connection_presence_type_cmp_availability (
+ TP_CONNECTION_PRESENCE_TYPE_UNKNOWN, 100) == 0);
+
+ return 0;
+}