Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/check_jabber_util.c

    r9c8dbc7 r5ebff60  
    3737        fail_unless(jabber_buddy_by_jid(ic, "wilmer@GAAST.NET/BitlBee", GET_BUDDY_CREAT) == budw1);
    3838
    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));
    4040        fail_unless(jabber_buddy_by_jid(ic, "WILMER@gaast.net", 0) == budw3);
    4141
     
    105105}
    106106
    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 
    126107Suite *jabber_util_suite(void)
    127108{
     
    140121        tcase_add_test(tc_core, check_buddy_add);
    141122        tcase_add_test(tc_core, check_compareJID);
    142         tcase_add_test(tc_core, check_hipchat_slug);
    143123        return s;
    144124}
Note: See TracChangeset for help on using the changeset viewer.