1 // Copyright (c) 2001-2004 International Business Machines
2 // Corporation and others. All Rights Reserved.
3 DataDrivenCollationTest {
6 Description { "These are the data driven tests" }
7 LongDescription { "The following entries are separate tests containing test data for various locales."
8 "Each entry has the following fields: "
9 "Info/Description - short descrioption of the test"
10 "Settings - settings for the test."
11 "Settings/TestLocale - locale for the collator OR"
12 "Settings/Rules - rules for the collator (can't have both)"
13 "Settings/Arguments - arguments to be passed to the collator before testing. Use rule syntax."
14 "Cases - set of test cases, which are sequences of strings that will be parsed"
15 "Sequences must not change the sign of relation, i.e. we can only have < and = or"
16 "> and = in single sequence. Cannot mix < and > in the same sequence. Whitespace is"
17 "is ignored unless quoted."
23 Description { "Lithuanian sort order." }
30 Cases { "cz<č<d<iz<y<j<sz<š<t<zz<ž" }
34 Description { "Latvian sort order." }
41 Cases { "cz<č<d<gz<ģ<h<iz<y<j<kz<ķ<l<lz<ļ<m<nz<ņ<o<rz<ŗ<s<sz<š<t<zz<ž" }
45 Description { "Estonian sort order." }
52 Cases { "sy<š<šy<z<zy<ž<v<w<va<õ<õy<ä<äy<ö<öy<ü<üy<x" }
56 Description { "Albanian sort order." }
63 Cases { "cz<ç<d<dz<dh<e<ez<ë<f<gz<gj<h<lz<ll<m<nz<nj<o<rz<rr<s<sz<sh<t<tz<th<u<xz<xh<y<zz<zh" }
66 TestSimplifiedChineseOrder {
68 Description { "Sorted file has different order." }
73 Arguments { "[normalization on]" }
77 Cases { "\u5F20<\u5F20\u4E00\u8E3F" }
80 TestTibetanNormalizedIterativeCrash {
82 Description { "This pretty much crashes." }
90 Cases { "\u0f71\u0f72\u0f80\u0f71\u0f72"
94 TestThaiPartialSortKeyProblems {
96 Description { "These are examples of strings that caused trouble in partial sort key testing." }
100 TestLocale { "th_TH" }
103 // TODO: the tests that are commented out should be enabled when j2720 is fixed
104 Cases { "\u0E01\u0E01\u0E38\u0E18\u0E20\u0E31\u0E13\u0E11\u0E4C"
105 "<\u0E01\u0E01\u0E38\u0E2A\u0E31\u0E19\u0E42\u0E18",
106 "\u0E01\u0E07\u0E01\u0E32\u0E23"
107 "<\u0E01\u0E07\u0E42\u0E01\u0E49",
108 "\u0E01\u0E23\u0E19\u0E17\u0E32"
109 "<\u0E01\u0E23\u0E19\u0E19\u0E40\u0E0A\u0E49\u0E32",
110 "\u0E01\u0E23\u0E30\u0E40\u0E08\u0E35\u0E22\u0E27"
111 "<\u0E01\u0E23\u0E30\u0E40\u0E08\u0E35\u0E4A\u0E22\u0E27",
112 "\u0E01\u0E23\u0E23\u0E40\u0E0A\u0E2D"
113 "<\u0E01\u0E23\u0E23\u0E40\u0E0A\u0E49\u0E32"
118 Description { "java.text allows rules to start as '<<<x<<<y...' "
119 "we emulate this by assuming a &[first tertiary ignorable] "
125 Rules { "=equal<<<z<<x<<<w<y &[first tertiary ignorable]=a &[first primary ignorable]=b" }
128 Cases { "a = equal < z < x < w < b < y" }
130 TestShiftedIgnorable {
132 Description { "New UCA states that primary ignorables should be completely "
133 "ignorable when following a shifted code point."
138 TestLocale { "root" }
139 Arguments { "[alternate shifted][strength 4]" }
163 TestNShiftedIgnorable {
165 Description { "New UCA states that primary ignorables should be completely "
166 "ignorable when following a shifted code point."
171 TestLocale { "root" }
172 Arguments { "[alternate non-ignorable][strength 3]" }
197 Description { "It turned out that surrogates were not skipped properly "
198 "when iterating backwards if they were in the middle of a "
199 "contraction. This test assures that this is fixed."
205 "&a < x\ud800\udc00b"
214 TestCIgnorableContraction {
216 Description { "Checks whether completely ignorable code points are "
217 "skipped in contractions."
226 "& L < lj, Lj <<< LJ"
227 "& N < nj, Nj <<< NJ "
232 "njiva=n\ud834\udd65jiva=n\uD834\uDD79jiva=n\u0000\u0000\u0000jiva=n\u0000jiva=n\ud800jiva=n\ufffejiva",
233 "ljubav=l\u0000jubav=l\uD834\uDD79jubav=l\u0000\u0000\u0000jubav=l\ud800jubav=l\ufffejubav",
234 "Ljubav=L\u0000jubav=L\uD834\uDD79jubav=L\u0000\u0000\u0000jubav=L\ud800jubav=L\ufffejubav",
239 TestCIgnorablePrefix {
241 Description { "Checks whether completely ignorable code points are "
242 "skipped in prefix processing."
252 "= \u30A1\uDB40\uDC30\u30FC"
253 "= \u30A1\uD800\u30FC"
254 "= \u30A1\uFFFE\u30FC"
255 "= \u30A1\uD834\uDD79\u30FC"
256 "= \u30A1\u0000\u0000\u0000\u30FC"
257 "= \u30A1\u0000\u30FC"
259 "= \u30A1\u0000\u059a\u30FC"
265 Description { "This test goes through primary strength cases" }
270 Arguments { "[strength 1]" }
275 "L\u00e4vi<L\u00f6wi",
276 "L\u00fcbeck=Lybeck",
281 Description { "This test goes through tertiary strength cases" }
286 Arguments { "[strength 3]" }
292 "L\u00fcbeck>lybeck",
293 "L\u00e4vi<L\u00f6we",
295 // constUCharCollationDanishTest::testBugs[][CollationDanishTest::MAX_TOKEN_LEN]="
317 "HAANDV\u00c6RKSBANKEN<"
320 "'NIELS J\u00d8RGEN'<"
341 "\u00feORVAR\u00d0UR<"
343 "'VESTERG\u00c5RD, A'<"
345 "'VESTERG\u00c5RD, B'<"
351 // constUCharCollationDanishTest::testNTList[][CollationDanishTest::MAX_TOKEN_LEN]="
359 "\u010du\u010d\u0113t<"
410 Description { "This test goes through new rules and tests against old rules" }
422 "<क<क़=क़<कँ<कं<कः<क॑<क॒"
423 "<क॓<क॔<कऽ<क्<का<कि<की<कु"
424 "<कू<कृ<कॄ<कॢ<कॣ<कॅ<कॆ<के"
425 "<कै<कॉ<कॊ<को<कौ<ख<ख़ =ख़<खँ<खं<खः"
426 "<ख॑<ख॒<ख॓<ख॔<खऽ<ख्<खा<खि"
427 "<खी<खु<खू<खृ<खॄ<खॢ<खॣ<खॅ"
428 "<खॆ<खे<खै<खॉ<खॊ<खो<खौ<ग"
429 "<ग़=ग़<गँ<गं<गः<ग॑<ग॒<ग॓<ग॔"
430 "<गऽ<ग्<गा<गि<गी<गु<गू<गृ"
431 "<गॄ<गॢ<गॣ<गॅ<गॆ<गे<गै<गॉ"
432 "<गॊ<गो<गौ<घ<ङ<च<छ<ज<ज़ =ज़<जँ<जं<जः"
433 "<ज॑<ज॒<ज॓<ज॔<जऽ<ज्<जा<जि"
434 "<जी<जु<जू<जृ<जॄ<जॢ<जॣ<जॅ"
435 "<जॆ<जे<जै<जॉ<जॊ<जो<जौ<झ"
436 "<ञ<ट<ठ<ड<ड़=ड़<डँ<डं<डः<ड॑<ड॒<ड॓<ड॔"
437 "<डऽ<ड्<डा<डि<डी<डु<डू<डृ"
438 "<डॄ<डॢ<डॣ<डॅ<डॆ<डे<डै<डॉ"
439 "<डॊ<डो<डौ<ढ<ढ़=ढ़<ढँ<ढं<ढः"
440 "<ढ॑<ढ॒<ढ॓<ढ॔<ढऽ<ढ्<ढा<ढि"
441 "<ढी<ढु<ढू<ढृ<ढॄ<ढॢ<ढॣ<ढॅ"
442 "<ढॆ<ढे<ढै<ढॉ<ढॊ<ढो<ढौ<ण"
443 "<त<थ<द<ध<न<ऩ =ऩ< नँ<नं< नः"
444 "<न॑<न॒<न॓<न॔<नऽ<न्<ना<नि"
445 "<नी<नु<नू<नृ<नॄ<नॢ<नॣ<नॅ"
446 "<नॆ<ने<नै<नॉ<नॊ<नो<नौ"
447 "<प<फ<फ़=फ़<फँ<फं<फः<फ॑<फ॒"
448 "<फ॓<फ॔<फऽ<फ्<फा<फि<फी<फु<फू<फृ"
449 "<फॄ<फॢ<फॣ<फॅ<फॆ<फे<फै<फॉ"
450 "<फॊ<फो<फौ<ब<भ<म<य<य़=य़ "
451 "<यँ<यं<यः<य॑<य॒<य॓<य॔"
452 "<यऽ<य्<या<यि<यी<यु<यू<यृ"
453 "<यॄ<यॢ<यॣ<यॅ<यॆ<ये<यै<यॉ"
454 "<यॊ<यो<यौ<र<ऱ=ऱ<रँ<रं<रः"
455 "<र॑<र॒<र॓<र॔<रऽ<र्<रा<रि"
456 "<री<रु<रू<रृ<रॄ<रॢ<रॣ<रॅ"
457 "<रॆ<रे<रै<रॉ<रॊ<रो<रौ"
458 "<ल<ळ<ऴ=ऴ<ळँ<ळं<ळः<ळ॑<ळ॒"
459 "<ळ॓<ळ॔<ळऽ<ळ्<ळा<ळि<ळी<ळु"
460 "<ळू<ळृ<ळॄ<ळॢ<ळॣ<ळॅ<ळॆ<ळे"
461 "<ळै<ळॉ<ळॊ<ळो<ळौ<व<श<ष<स<ह"
462 "<़<ँ<ं<ः<॑<॒<॓<॔<ऽ<्<ा<ि<ी"
469 Description { "This test goes through new rules and tests against old rules" }
477 "xa<xA<Xa<XA<xá<Xá<xax<xAx<xáx<xd<Xd<xð<xÐ<Xð<XÐ<xđ<xĐ<Xđ<XĐ<"
478 "xdx<xðx<xÐx<xđx<xĐx<xe<Xe<xex<xn<Xn<xŋ<xŊ<Xŋ<XŊ<xnx<xŋx<xŊx<"
479 "xo<Xo<xó<Xó<xox<xóx<xs<Xs<xß<Xß<xßx<xsx<xt<Xt<xþ<xÞ<Xþ<XÞ<xþx<"
480 "xÞx<xtx<xu<Xu<xú<Xú<xux<xúx<xv<Xv<xw<Xw<xvx<xwx<xy<Xy<xü<Xü<"
481 "xű<Xű<xyx<xüx<xűx<xz<Xz<xzx<xå<Xå<xåx<xä<Xä<xæ<xÆ<Xæ<XÆ<xäx<"
482 "xæx<xÆx<xö<Xö<xø<Xø<xő<Xő<xõ<Xõ<xœ<xŒ<Xœ<XŒ<xöx<xøx<xőx<xõx<xœx<xŒx"
487 Description { "This test goes through new rules and tests against old rules" }
495 "xAx<xă<xĂ<Xă<XĂ<xăx<xĂx<xâ<xÂ<Xâ<XÂ<xâx<xÂx<xb<xIx<xî<xÎ<Xî<XÎ<xîx<xÎx<"
496 "xj<xSx<xș=xş<xȘ=xŞ<Xș=Xş<XȘ=XŞ<xșx=xşx<xȘx=xŞx<xT<xTx<xț=xţ<xȚ=xŢ<Xț=Xţ<XȚ"
497 "=XŢ<xțx=xţx<xȚx=xŢx<xU"