Changes in tests/check_jabber_util.c [9c8dbc7:5ebff60]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/check_jabber_util.c
r9c8dbc7 r5ebff60 37 37 fail_unless(jabber_buddy_by_jid(ic, "wilmer@GAAST.NET/BitlBee", GET_BUDDY_CREAT) == budw1); 38 38 39 fail_ unless(jabber_buddy_by_jid(ic, "wilmer@gaast.net", GET_BUDDY_EXACT));39 fail_if(jabber_buddy_by_jid(ic, "wilmer@gaast.net", GET_BUDDY_EXACT)); 40 40 fail_unless(jabber_buddy_by_jid(ic, "WILMER@gaast.net", 0) == budw3); 41 41 … … 105 105 } 106 106 107 static void check_hipchat_slug(int l)108 {109 int i;110 111 const char *tests[] = {112 "test !\"#$%&\'()*+,-./0123456789:;<=>?@ABC", "test_!#$%\()*+,-.0123456789;=?abc",113 "test XYZ[\\]^_`abc", "test_xyz[\\]^_`abc",114 "test {|}~¡¢£¤¥¦§¨©ª«¬\xad®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆ", "test_{|}~¡¢£¤¥¦§¨©ª«¬\xad®¯°±²³´µ¶·¸¹º»¼½¾¿àáâãäåæ",115 "test IJ ij I ı I ı", "test_ij_ij_i_ı_i_ı",116 NULL,117 };118 119 for (i = 0; tests[i]; i += 2) {120 char *new = hipchat_make_channel_slug(tests[i]);121 fail_unless(!strcmp(tests[i + 1], new));122 g_free(new);123 }124 }125 126 107 Suite *jabber_util_suite(void) 127 108 { … … 140 121 tcase_add_test(tc_core, check_buddy_add); 141 122 tcase_add_test(tc_core, check_compareJID); 142 tcase_add_test(tc_core, check_hipchat_slug);143 123 return s; 144 124 }
Note: See TracChangeset
for help on using the changeset viewer.