OLD | NEW |
1 /******************************************************************** | 1 /******************************************************************** |
2 * COPYRIGHT: | 2 * COPYRIGHT: |
3 * Copyright (c) 1997-2011, International Business Machines Corporation and | 3 * Copyright (c) 1997-2014, International Business Machines Corporation and |
4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
5 ********************************************************************/ | 5 ********************************************************************/ |
6 | 6 |
7 /** | 7 /** |
8 * Collation regression tests. | 8 * Collation regression tests. |
9 * (So we'll have no regrets later) | 9 * (So we'll have no regrets later) |
10 */ | 10 */ |
11 | 11 |
12 #ifndef _REGCOLL | 12 #ifndef _REGCOLL |
13 #define _REGCOLL | 13 #define _REGCOLL |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // Support for Swedish gone in 1.1.6 (Can't create Swedish collator) | 217 // Support for Swedish gone in 1.1.6 (Can't create Swedish collator) |
218 // | 218 // |
219 void Test4141640(/* char* par */); | 219 void Test4141640(/* char* par */); |
220 | 220 |
221 // @bug 4146160 | 221 // @bug 4146160 |
222 // | 222 // |
223 // RuleBasedCollator doesn't use getCollationElementIterator internally | 223 // RuleBasedCollator doesn't use getCollationElementIterator internally |
224 // | 224 // |
225 void Test4146160(/* char* par */); | 225 void Test4146160(/* char* par */); |
226 | 226 |
| 227 void Test4179216(); |
| 228 |
227 // Ticket 7189 | 229 // Ticket 7189 |
228 // | 230 // |
229 // nextSortKeyPart incorrect for EO_S1 collation | 231 // nextSortKeyPart incorrect for EO_S1 collation |
230 // | 232 // |
231 void TestT7189(); | 233 void TestT7189(); |
232 | 234 |
233 // Ticket 8624 | 235 // Ticket 8624 |
234 // | 236 // |
235 // Tertiary value compression problem with case first option enabled | 237 // Tertiary value compression problem with case first option enabled |
236 // | 238 // |
237 void TestCaseFirstCompression(); | 239 void TestCaseFirstCompression(); |
238 | 240 |
| 241 void TestTrailingComment(); |
| 242 void TestBeforeWithTooStrongAfter(); |
| 243 |
239 private: | 244 private: |
240 //------------------------------------------------------------------------ | 245 //------------------------------------------------------------------------ |
241 // Internal utilities | 246 // Internal utilities |
242 // | 247 // |
243 void compareArray(Collator &c, | 248 void compareArray(Collator &c, |
244 const UChar tests[][CollationRegressionTest::MAX_TOKEN_LEN], | 249 const UChar tests[][CollationRegressionTest::MAX_TOKEN_LEN], |
245 int32_t testCount); | 250 int32_t testCount); |
246 | 251 |
247 void assertEqual(CollationElementIterator &i1, CollationElementIterator &i2)
; | 252 void assertEqual(CollationElementIterator &i1, CollationElementIterator &i2)
; |
248 | 253 |
249 | 254 |
250 RuleBasedCollator *en_us; | 255 RuleBasedCollator *en_us; |
251 | 256 |
252 void caseFirstCompressionSub(Collator *col, UnicodeString opt); | 257 void caseFirstCompressionSub(Collator *col, UnicodeString opt); |
253 }; | 258 }; |
254 | 259 |
255 #endif /* #if !UCONFIG_NO_COLLATION */ | 260 #endif /* #if !UCONFIG_NO_COLLATION */ |
256 | 261 |
257 #endif | 262 #endif |
OLD | NEW |