]> git.0d.be Git - empathy.git/blob - tests/empathy-utils-test.c
Updated Polish translation
[empathy.git] / tests / empathy-utils-test.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <string.h>
4
5 #include <libempathy/empathy-utils.h>
6 #include "test-helper.h"
7
8 static void
9 test_substring (void)
10 {
11   gchar *tmp;
12
13   tmp = empathy_substring ("empathy", 2, 6);
14   g_assert (tmp != NULL);
15   g_assert (strcmp (tmp, "path") == 0);
16
17   g_free (tmp);
18 }
19
20 int
21 main (int argc,
22     char **argv)
23 {
24   int result;
25
26   test_init (argc, argv);
27
28   g_test_add_func ("/utils/substring", test_substring);
29
30   result = g_test_run ();
31   test_deinit ();
32   return result;
33 }