4 #include "../protocols/oscar/oscar.h"
6 START_TEST(test_oscar_util_name_compare
)
24 for (i
= 0; i
< G_N_ELEMENTS(good
); i
++) {
25 ck_assert_int_eq(0, oscar_util_name_compare("test", good
[i
]));
26 ck_assert_int_eq(0, oscar_util_name_compare(good
[i
], "test"));
28 for (i
= 0; i
< G_N_ELEMENTS(bad
); i
++) {
29 ck_assert_int_ne(0, oscar_util_name_compare("test", bad
[i
]));
30 ck_assert_int_ne(0, oscar_util_name_compare(bad
[i
], "test"));
35 Suite
*oscar_util_suite(void)
40 s
= suite_create("OSCAR Utility Functions");
42 tc
= tcase_create("Convert IM from network format to HTML");
43 tcase_add_test(tc
, test_oscar_util_name_compare
);
44 suite_add_tcase(s
, tc
);