add empathy_connection_managers_call_when_ready
[empathy-mirror.git] / tests / empathy-utils-test.c
blob896793aa0f8482f56c19c56928c2cedf29c800b2
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <string.h>
5 #include <libempathy/empathy-utils.h>
6 #include "test-helper.h"
8 static void
9 test_substring (void)
11 gchar *tmp;
13 tmp = empathy_substring ("empathy", 2, 6);
14 g_assert (tmp != NULL);
15 g_assert (strcmp (tmp, "path") == 0);
17 g_free (tmp);
20 int
21 main (int argc,
22 char **argv)
24 int result;
26 test_init (argc, argv);
28 g_test_add_func ("/utils/substring", test_substring);
30 result = g_test_run ();
31 test_deinit ();
32 return result;