Mercurial > pidgin
comparison libpurple/tests/test_jabber_jutil.c @ 28278:c9ec54c0add1
Just comment out the failing tests when using glib; it's not likely anyone
will encounter an issue with this in the real world, and it means people
without libidn can run "make check" to find other issues.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 19 Sep 2009 02:36:04 +0000 |
parents | 60a790b93a50 |
children | aba0ab6b4abd |
comparison
equal
deleted
inserted
replaced
28274:60a790b93a50 | 28278:c9ec54c0add1 |
---|---|
140 | 140 |
141 /* These case-mapping tests culled from examining RFC3454 B.2 */ | 141 /* These case-mapping tests culled from examining RFC3454 B.2 */ |
142 | 142 |
143 /* Cyrillic capital EF (U+0424) maps to lowercase EF (U+0444) */ | 143 /* Cyrillic capital EF (U+0424) maps to lowercase EF (U+0444) */ |
144 assert_jid_parts("ф", "darkrain42.org", "Ф@darkrain42.org"); | 144 assert_jid_parts("ф", "darkrain42.org", "Ф@darkrain42.org"); |
145 | |
146 #ifdef USE_IDN | |
145 /* | 147 /* |
146 * These character (U+A664 and U+A665) are not mapped to anything in | 148 * These character (U+A664 and U+A665) are not mapped to anything in |
147 * RFC3454 B.2. This first test *fails* when not using IDN because glib's | 149 * RFC3454 B.2. This first test *fails* when not using IDN because glib's |
148 * case-folding/utf8_strdown improperly (for XMPP) lowercases the character. | 150 * case-folding/utf8_strdown improperly (for XMPP) lowercases the character. |
151 * | |
152 * This is known, but not (very?) likely to actually cause a problem, so | |
153 * this test is commented out when using glib's functions. | |
149 */ | 154 */ |
150 assert_jid_parts("Ꙥ", "darkrain42.org", "Ꙥ@darkrain42.org"); | 155 assert_jid_parts("Ꙥ", "darkrain42.org", "Ꙥ@darkrain42.org"); |
151 assert_jid_parts("ꙥ", "darkrain42.org", "ꙥ@darkrain42.org"); | 156 assert_jid_parts("ꙥ", "darkrain42.org", "ꙥ@darkrain42.org"); |
157 #endif | |
158 | |
152 /* U+04E9 to U+04E9 */ | 159 /* U+04E9 to U+04E9 */ |
153 assert_jid_parts("paul", "өarkrain42.org", "paul@Өarkrain42.org"); | 160 assert_jid_parts("paul", "өarkrain42.org", "paul@Өarkrain42.org"); |
154 } | 161 } |
155 END_TEST | 162 END_TEST |
156 | 163 |