Update python binding
[empathy.git] / tests / check-empathy-utils.c
blobfaf2610581e2d6b25f89fa8ca2ec0626ee1e0c58
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <string.h>
5 #include <check.h>
6 #include "check-helpers.h"
7 #include "check-libempathy.h"
9 #include <libempathy/empathy-utils.h>
11 START_TEST (test_empathy_substring)
13 gchar *tmp;
15 tmp = empathy_substring ("empathy", 2, 6);
16 fail_if (tmp == NULL);
17 fail_if (strcmp (tmp, "path") != 0);
19 g_free (tmp);
21 END_TEST
23 TCase *
24 make_empathy_utils_tcase (void)
26 TCase *tc = tcase_create ("empathy-utils");
27 tcase_add_test (tc, test_empathy_substring);
28 return tc;