diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-03-17 14:44:10 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-03-17 14:44:10 +0000 |
commit | 85aa079ae7e85f5e7ea4486e0d9c39440506dbef (patch) | |
tree | 16e4568be48945e03ec73a6a07d0148099abe1a3 /tests/availability-cmp.c | |
parent | 07a1c96e574ce45fd82f4919c78df11ddc16f683 (diff) | |
download | telepathy-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.c | 16 |
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; +} |