1 // Copyright (c) 2001-2005 International Business Machines
2 // Corporation and others. All Rights Reserved.
3 DataDrivenCollationTest:table(nofallback) {
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 { "Testing the primary strength." }
28 Arguments { "[strength 1]" }
31 Cases { "lā = lĀ = Lā = LĀ < lān = lĀn < lē = lĒ = Lē = LĒ < lēn = lĒn" }
36 Description { "Lithuanian sort order." }
43 Cases { "cz<č<d<iz<y<j<sz<š<t<zz<ž" }
47 Description { "Latvian sort order." }
54 Cases { "cz<č<d<gz<ģ<h<iz<y<j<kz<ķ<l<lz<ļ<m<nz<ņ<o<rz<ŗ<s<sz<š<t<zz<ž" }
58 Description { "Estonian sort order." }
65 Cases { "sy<š<šy<z<zy<ž<v<w<va<õ<õy<ä<äy<ö<öy<ü<üy<x" }
69 Description { "Albanian sort order." }
76 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" }
79 TestSimplifiedChineseOrder {
81 Description { "Sorted file has different order." }
86 Arguments { "[normalization on]" }
90 Cases { "\u5F20<\u5F20\u4E00\u8E3F" }
93 TestTibetanNormalizedIterativeCrash {
95 Description { "This pretty much crashes." }
103 Cases { "\u0f71\u0f72\u0f80\u0f71\u0f72"
107 TestThaiPartialSortKeyProblems {
109 Description { "These are examples of strings that caused trouble in partial sort key testing." }
113 TestLocale { "th_TH" }
116 // TODO: the tests that are commented out should be enabled when j2720 is fixed
117 Cases { "\u0E01\u0E01\u0E38\u0E18\u0E20\u0E31\u0E13\u0E11\u0E4C"
118 "<\u0E01\u0E01\u0E38\u0E2A\u0E31\u0E19\u0E42\u0E18",
119 "\u0E01\u0E07\u0E01\u0E32\u0E23"
120 "<\u0E01\u0E07\u0E42\u0E01\u0E49",
121 "\u0E01\u0E23\u0E19\u0E17\u0E32"
122 "<\u0E01\u0E23\u0E19\u0E19\u0E40\u0E0A\u0E49\u0E32",
123 "\u0E01\u0E23\u0E30\u0E40\u0E08\u0E35\u0E22\u0E27"
124 "<\u0E01\u0E23\u0E30\u0E40\u0E08\u0E35\u0E4A\u0E22\u0E27",
125 "\u0E01\u0E23\u0E23\u0E40\u0E0A\u0E2D"
126 "<\u0E01\u0E23\u0E23\u0E40\u0E0A\u0E49\u0E32"
131 Description { "java.text allows rules to start as '<<<x<<<y...' "
132 "we emulate this by assuming a &[first tertiary ignorable] "
138 Rules { "=equal<<<z<<x<<<w<y &[first tertiary ignorable]=a &[first primary ignorable]=b" }
141 Cases { "a = equal < z < x < w < b < y" }
143 TestShiftedIgnorable {
145 Description { "New UCA states that primary ignorables should be completely "
146 "ignorable when following a shifted code point."
151 TestLocale { "root" }
152 Arguments { "[alternate shifted][strength 4]" }
176 TestNShiftedIgnorable {
178 Description { "New UCA states that primary ignorables should be completely "
179 "ignorable when following a shifted code point."
184 TestLocale { "root" }
185 Arguments { "[alternate non-ignorable][strength 3]" }
210 Description { "It turned out that surrogates were not skipped properly "
211 "when iterating backwards if they were in the middle of a "
212 "contraction. This test assures that this is fixed."
218 "&a < x\ud800\udc00b"
227 UCA 4.1 removes skipping of ignorable code points in contractions!
228 TestCIgnorableContraction {
230 Description { "Checks whether completely ignorable code points are "
231 "skipped in contractions."
240 "& L < lj, Lj <<< LJ"
241 "& N < nj, Nj <<< NJ "
246 "njiva=n\ud834\udd65jiva=n\uD834\uDD79jiva=n\u0000\u0000\u0000jiva=n\u0000jiva=n\ud800jiva=n\ufffejiva",
247 "ljubav=l\u0000jubav=l\uD834\uDD79jubav=l\u0000\u0000\u0000jubav=l\ud800jubav=l\ufffejubav",
248 "Ljubav=L\u0000jubav=L\uD834\uDD79jubav=L\u0000\u0000\u0000jubav=L\ud800jubav=L\ufffejubav",
254 UCA 4.1 removes skipping of ignorable code points in contractions!
255 TestCIgnorablePrefix {
257 Description { "Checks whether completely ignorable code points are "
258 "skipped in prefix processing."
268 "= \u30A1\uDB40\uDC30\u30FC"
269 "= \u30A1\uD800\u30FC"
270 "= \u30A1\uFFFE\u30FC"
271 "= \u30A1\uD834\uDD79\u30FC"
272 "= \u30A1\u0000\u0000\u0000\u30FC"
273 "= \u30A1\u0000\u30FC"
275 "= \u30A1\u0000\u059a\u30FC"
282 Description { "This test goes through primary strength cases" }
287 Arguments { "[strength 1]" }
292 "L\u00e4vi<L\u00f6wi",
293 "L\u00fcbeck=Lybeck",
298 Description { "This test goes through tertiary strength cases" }
303 Arguments { "[strength 3]" }
309 "L\u00fcbeck>lybeck",
310 "L\u00e4vi<L\u00f6we",
312 // constUCharCollationDanishTest::testBugs[][CollationDanishTest::MAX_TOKEN_LEN]="
334 "HAANDV\u00c6RKSBANKEN<"
337 "'NIELS J\u00d8RGEN'<"
358 "\u00feORVAR\u00d0UR<"
360 "'VESTERG\u00c5RD, A'<"
362 "'VESTERG\u00c5RD, B'<"
368 // constUCharCollationDanishTest::testNTList[][CollationDanishTest::MAX_TOKEN_LEN]="
376 "\u010du\u010d\u0113t<"
427 Description { "This test goes through new rules and tests against old rules" }
439 "<क<क़=क़<कँ<कं<कः<क॑<क॒"
440 "<क॓<क॔<कऽ<क्<का<कि<की<कु"
441 "<कू<कृ<कॄ<कॢ<कॣ<कॅ<कॆ<के"
442 "<कै<कॉ<कॊ<को<कौ<ख<ख़ =ख़<खँ<खं<खः"
443 "<ख॑<ख॒<ख॓<ख॔<खऽ<ख्<खा<खि"
444 "<खी<खु<खू<खृ<खॄ<खॢ<खॣ<खॅ"
445 "<खॆ<खे<खै<खॉ<खॊ<खो<खौ<ग"
446 "<ग़=ग़<गँ<गं<गः<ग॑<ग॒<ग॓<ग॔"
447 "<गऽ<ग्<गा<गि<गी<गु<गू<गृ"
448 "<गॄ<गॢ<गॣ<गॅ<गॆ<गे<गै<गॉ"
449 "<गॊ<गो<गौ<घ<ङ<च<छ<ज<ज़ =ज़<जँ<जं<जः"
450 "<ज॑<ज॒<ज॓<ज॔<जऽ<ज्<जा<जि"
451 "<जी<जु<जू<जृ<जॄ<जॢ<जॣ<जॅ"
452 "<जॆ<जे<जै<जॉ<जॊ<जो<जौ<झ"
453 "<ञ<ट<ठ<ड<ड़=ड़<डँ<डं<डः<ड॑<ड॒<ड॓<ड॔"
454 "<डऽ<ड्<डा<डि<डी<डु<डू<डृ"
455 "<डॄ<डॢ<डॣ<डॅ<डॆ<डे<डै<डॉ"
456 "<डॊ<डो<डौ<ढ<ढ़=ढ़<ढँ<ढं<ढः"
457 "<ढ॑<ढ॒<ढ॓<ढ॔<ढऽ<ढ्<ढा<ढि"
458 "<ढी<ढु<ढू<ढृ<ढॄ<ढॢ<ढॣ<ढॅ"
459 "<ढॆ<ढे<ढै<ढॉ<ढॊ<ढो<ढौ<ण"
460 "<त<थ<द<ध<न<ऩ =ऩ< नँ<नं< नः"
461 "<न॑<न॒<न॓<न॔<नऽ<न्<ना<नि"
462 "<नी<नु<नू<नृ<नॄ<नॢ<नॣ<नॅ"
463 "<नॆ<ने<नै<नॉ<नॊ<नो<नौ"
464 "<प<फ<फ़=फ़<फँ<फं<फः<फ॑<फ॒"
465 "<फ॓<फ॔<फऽ<फ्<फा<फि<फी<फु<फू<फृ"
466 "<फॄ<फॢ<फॣ<फॅ<फॆ<फे<फै<फॉ"
467 "<फॊ<फो<फौ<ब<भ<म<य<य़=य़ "
468 "<यँ<यं<यः<य॑<य॒<य॓<य॔"
469 "<यऽ<य्<या<यि<यी<यु<यू<यृ"
470 "<यॄ<यॢ<यॣ<यॅ<यॆ<ये<यै<यॉ"
471 "<यॊ<यो<यौ<र<ऱ=ऱ<रँ<रं<रः"
472 "<र॑<र॒<र॓<र॔<रऽ<र्<रा<रि"
473 "<री<रु<रू<रृ<रॄ<रॢ<रॣ<रॅ"
474 "<रॆ<रे<रै<रॉ<रॊ<रो<रौ"
475 "<ल<ळ<ऴ=ऴ<ळँ<ळं<ळः<ळ॑<ळ॒"
476 "<ळ॓<ळ॔<ळऽ<ळ्<ळा<ळि<ळी<ळु"
477 "<ळू<ळृ<ळॄ<ळॢ<ळॣ<ळॅ<ळॆ<ळे"
478 "<ळै<ळॉ<ळॊ<ळो<ळौ<व<श<ष<स<ह"
479 "<़<ँ<ं<ः<॑<॒<॓<॔<ऽ<्<ा<ि<ी"
486 Description { "This test goes through new rules and tests against old rules" }
494 "xa<xA<Xa<XA<xá<Xá<xax<xAx<xáx<xd<Xd<xð<xÐ<Xð<XÐ<xđ<xĐ<Xđ<XĐ<"
495 "xdx<xðx<xÐx<xđx<xĐx<xe<Xe<xex<xn<Xn<xŋ<xŊ<Xŋ<XŊ<xnx<xŋx<xŊx<"
496 "xo<Xo<xó<Xó<xox<xóx<xs<Xs<xß<Xß<xßx<xsx<xt<Xt<xþ<xÞ<Xþ<XÞ<xþx<"
497 "xÞx<xtx<xu<Xu<xú<Xú<xux<xúx<xv<Xv<xw<Xw<xvx<xwx<xy<Xy<xü<Xü<"
498 "xű<Xű<xyx<xüx<xűx<xz<Xz<xzx<xå<Xå<xåx<xä<Xä<xæ<xÆ<Xæ<XÆ<xäx<"
499 "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"
504 Description { "This test goes through new rules and tests against old rules" }
512 "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<"
513 "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Ț"
514 "=XŢ<xțx=xţx<xȚx=xŢx<xU"