- Timestamp:
- 2015-11-23T17:49:09Z (9 years ago)
- Branches:
- master
- Children:
- ad9ac5d
- Parents:
- c34247d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/check_jabber_util.c
rc34247d r9c8dbc7 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.