]> git.0d.be Git - empathy.git/blob - tests/check-empathy-utils.c
Import tools from telepathy-glib 0.7.3 and build a static libemp-extensions.la.
[empathy.git] / tests / check-empathy-utils.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <string.h>
4
5 #include <check.h>
6 #include "check-helpers.h"
7 #include "check-libempathy.h"
8
9 #include <libempathy/empathy-utils.h>
10
11 START_TEST (test_empathy_substring)
12 {
13   gchar *tmp;
14
15   tmp = empathy_substring ("empathy", 2, 6);
16   fail_if (tmp == NULL);
17   fail_if (strcmp (tmp, "path") != 0);
18
19   g_free (tmp);
20 }
21 END_TEST
22
23 TCase *
24 make_empathy_utils_tcase (void)
25 {
26     TCase *tc = tcase_create ("empathy-utils");
27     tcase_add_test (tc, test_empathy_substring);
28     return tc;
29 }