Changes in tests/check_jabber_util.c [5ebff60:9c8dbc7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/check_jabber_util.c
r5ebff60 r9c8dbc7 37 37 fail_unless(jabber_buddy_by_jid(ic, "wilmer@GAAST.NET/BitlBee", GET_BUDDY_CREAT) == budw1); 38 38 39 fail_ if(jabber_buddy_by_jid(ic, "wilmer@gaast.net", GET_BUDDY_EXACT));39 fail_unless(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 107 126 Suite *jabber_util_suite(void) 108 127 { … … 121 140 tcase_add_test(tc_core, check_buddy_add); 122 141 tcase_add_test(tc_core, check_compareJID); 142 tcase_add_test(tc_core, check_hipchat_slug); 123 143 return s; 124 144 }
Note: See TracChangeset
for help on using the changeset viewer.