6 test_oscar_util_name_compare(void) {
8 const gchar
*good
[] = {
17 const gchar
*bad
[] = {
23 for(i
= 0; i
< G_N_ELEMENTS(good
); i
++) {
24 g_assert_cmpint(0, ==, oscar_util_name_compare("test", good
[i
]));
25 g_assert_cmpint(0, ==, oscar_util_name_compare(good
[i
], "test"));
28 for(i
= 0; i
< G_N_ELEMENTS(bad
); i
++) {
29 g_assert_cmpint(0, !=, oscar_util_name_compare("test", bad
[i
]));
30 g_assert_cmpint(0, !=, oscar_util_name_compare(bad
[i
], "test"));
35 main(gint argc
, gchar
**argv
) {
36 g_test_init(&argc
, &argv
, NULL
);
38 g_test_add_func("/oscar/util/name compare",
39 test_oscar_util_name_compare
);