2002-04-30 23:04:47 +00:00
|
|
|
DataDrivenCollationTest {
|
2002-06-04 08:06:49 +00:00
|
|
|
Info {
|
|
|
|
Headers { "sequence" }
|
2002-08-03 05:07:55 +00:00
|
|
|
Description { "These are the data driven tests" }
|
2002-06-04 08:06:49 +00:00
|
|
|
LongDescription { "The following entries are separate tests containing test data for various locales."
|
2002-04-30 23:04:47 +00:00
|
|
|
"Each entry has the following fields: "
|
2002-08-03 05:07:55 +00:00
|
|
|
"Info/Description - short descrioption of the test"
|
|
|
|
"Settings - settings for the test."
|
|
|
|
"Settings/TestLocale - locale for the collator OR"
|
|
|
|
"Settings/Rules - rules for the collator (can't have both)"
|
|
|
|
"Settings/Arguments - arguments to be passed to the collator before testing. Use rule syntax."
|
|
|
|
"Cases - set of test cases, which are sequences of strings that will be parsed"
|
2002-04-30 23:04:47 +00:00
|
|
|
"Sequences must not change the sign of relation, i.e. we can only have < and = or"
|
|
|
|
"> and = in single sequence. Cannot mix < and > in the same sequence. Whitespace is"
|
|
|
|
"is ignored unless quoted."
|
|
|
|
}
|
2002-06-04 08:06:49 +00:00
|
|
|
}
|
2002-04-30 23:04:47 +00:00
|
|
|
TestData {
|
2002-08-03 05:07:55 +00:00
|
|
|
TestJavaStyleRule {
|
|
|
|
Info {
|
|
|
|
Description { "java.text allows rules to start as '<<<x<<<y...' "
|
|
|
|
"we emulate this by assuming a &[first tertiary ignorable] "
|
|
|
|
"in this case."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Settings {
|
|
|
|
{
|
|
|
|
Rules { "=equal<<<z<<x<<<w<y &[first tertiary ignorable]=a &[first primary ignorable]=b" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Cases { "a = equal < z < x < w < b < y" }
|
|
|
|
}
|
2002-07-15 22:12:22 +00:00
|
|
|
TestShiftedIgnorable {
|
|
|
|
Info {
|
|
|
|
Description { "New UCA states that primary ignorables should be completely "
|
|
|
|
"ignorable when following a shifted code point."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Settings {
|
|
|
|
{
|
|
|
|
TestLocale { "root" }
|
|
|
|
Arguments { "[alternate shifted][strength 4]" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Cases {
|
|
|
|
"a' 'b="
|
|
|
|
"a' '\u0300b="
|
|
|
|
"a' '\u0301b<"
|
|
|
|
"a_b="
|
|
|
|
"a_\u0300b="
|
|
|
|
"a_\u0301b<"
|
|
|
|
"A' 'b="
|
|
|
|
"A' '\u0300b="
|
|
|
|
"A' '\u0301b<"
|
|
|
|
"A_b="
|
|
|
|
"A_\u0300b="
|
|
|
|
"A_\u0301b<"
|
|
|
|
"a\u0301b<"
|
|
|
|
"A\u0301b<"
|
|
|
|
"a\u0300b<"
|
|
|
|
"A\u0300b"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TestNShiftedIgnorable {
|
|
|
|
Info {
|
|
|
|
Description { "New UCA states that primary ignorables should be completely "
|
|
|
|
"ignorable when following a shifted code point."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Settings {
|
|
|
|
{
|
|
|
|
TestLocale { "root" }
|
|
|
|
Arguments { "[alternate non-ignorable][strength 3]" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Cases {
|
|
|
|
"a' 'b<"
|
|
|
|
"A' 'b<"
|
|
|
|
"a' '\u0301b<"
|
|
|
|
"A' '\u0301b<"
|
|
|
|
"a' '\u0300b<"
|
|
|
|
"A' '\u0300b<"
|
|
|
|
"a_b<"
|
|
|
|
"A_b<"
|
|
|
|
"a_\u0301b<"
|
|
|
|
"A_\u0301b<"
|
|
|
|
"a_\u0300b<"
|
|
|
|
"A_\u0300b<"
|
|
|
|
"a\u0301b<"
|
|
|
|
"A\u0301b<"
|
|
|
|
"a\u0300b<"
|
|
|
|
"A\u0300b<"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-07-02 22:37:22 +00:00
|
|
|
TestSafeSurrogates {
|
|
|
|
Info {
|
|
|
|
Description { "It turned out that surrogates were not skipped properly "
|
|
|
|
"when iterating backwards if they were in the middle of a "
|
|
|
|
"contraction. This test assures that this is fixed."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Settings {
|
|
|
|
{
|
|
|
|
Rules {
|
|
|
|
"&a < x\ud800\udc00b"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Cases {
|
|
|
|
"a<x\ud800\udc00b"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TestCIgnorableContraction {
|
|
|
|
Info {
|
|
|
|
Description { "Checks whether completely ignorable code points are "
|
|
|
|
"skipped in contractions."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Settings {
|
|
|
|
{
|
|
|
|
TestLocale { "sh" }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
Rules {
|
|
|
|
"& L < lj, Lj <<< LJ"
|
|
|
|
"& N < nj, Nj <<< NJ "
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Cases {
|
|
|
|
"njiva=n\ud834\udd65jiva=n\uD834\uDD79jiva=n\u0000\u0000\u0000jiva=n\u0000jiva=n\ud800jiva=n\ufffejiva",
|
|
|
|
"ljubav=l\u0000jubav=l\uD834\uDD79jubav=l\u0000\u0000\u0000jubav=l\ud800jubav=l\ufffejubav",
|
|
|
|
"Ljubav=L\u0000jubav=L\uD834\uDD79jubav=L\u0000\u0000\u0000jubav=L\ud800jubav=L\ufffejubav",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TestCIgnorablePrefix {
|
|
|
|
Info {
|
|
|
|
Description { "Checks whether completely ignorable code points are "
|
|
|
|
"skipped in prefix processing."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Settings {
|
|
|
|
{
|
|
|
|
TestLocale { "ja" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Cases {
|
|
|
|
"\u30A1\u30FC"
|
|
|
|
"= \u30A1\uDB40\uDC30\u30FC"
|
|
|
|
"= \u30A1\uD800\u30FC"
|
|
|
|
"= \u30A1\uFFFE\u30FC"
|
|
|
|
"= \u30A1\uD834\uDD79\u30FC"
|
|
|
|
"= \u30A1\u0000\u0000\u0000\u30FC"
|
|
|
|
"= \u30A1\u0000\u30FC"
|
|
|
|
"= \u30A1\u30FC"
|
|
|
|
"= \u30A1\u0000\u059a\u30FC"
|
|
|
|
"= \u30A1\u30FC"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-04-30 23:04:47 +00:00
|
|
|
da_TestPrimary {
|
2002-06-04 08:06:49 +00:00
|
|
|
Info {
|
|
|
|
Description { "This test goes through primary strength cases" }
|
|
|
|
}
|
2002-05-10 01:21:49 +00:00
|
|
|
Settings {
|
|
|
|
{
|
2002-06-04 08:06:49 +00:00
|
|
|
TestLocale { "da" }
|
|
|
|
Arguments { "[strength 1]" }
|
2002-05-10 01:21:49 +00:00
|
|
|
}
|
|
|
|
}
|
2002-06-04 08:06:49 +00:00
|
|
|
Cases {
|
2002-04-30 23:04:47 +00:00
|
|
|
"Lvi=Lwi",
|
2002-06-04 08:06:49 +00:00
|
|
|
"L\u00e4vi<L\u00f6wi",
|
|
|
|
"L\u00fcbeck=Lybeck",
|
2002-04-30 23:04:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
da_TestTertiary {
|
2002-06-04 08:06:49 +00:00
|
|
|
Info {
|
|
|
|
Description { "This test goes through tertiary strength cases" }
|
|
|
|
}
|
2002-05-10 01:21:49 +00:00
|
|
|
Settings {
|
|
|
|
{
|
2002-06-04 08:06:49 +00:00
|
|
|
TestLocale { "da" }
|
|
|
|
Arguments { "[strength 3]" }
|
2002-05-10 01:21:49 +00:00
|
|
|
}
|
|
|
|
}
|
2002-06-04 08:06:49 +00:00
|
|
|
Cases {
|
2002-04-30 23:04:47 +00:00
|
|
|
"Luc<luck",
|
2002-06-04 08:06:49 +00:00
|
|
|
"luck<L\u00fcbeck",
|
|
|
|
"L\u00fcbeck>lybeck",
|
|
|
|
"L\u00e4vi<L\u00f6we",
|
|
|
|
"L\u00f6ww<mast",
|
2002-04-30 23:04:47 +00:00
|
|
|
// constUCharCollationDanishTest::testBugs[][CollationDanishTest::MAX_TOKEN_LEN]="
|
|
|
|
"A/S<"
|
|
|
|
"ANDRE<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"ANDR\u00c9<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"ANDREAS<"
|
|
|
|
"AS<"
|
|
|
|
"CA<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u00c7A<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"CB<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u00c7C<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"D.S.B.<"
|
|
|
|
"DA<"
|
|
|
|
"DB<"
|
|
|
|
"DSB<"
|
|
|
|
"DSC<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u00d0A<"
|
|
|
|
"\u00d0C<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"EKSTRA_ARBEJDE<"
|
|
|
|
"EKSTRABUD0<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"H\u00d8ST<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"HAAG<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"H\u00c5NDBOG<"
|
|
|
|
"HAANDV\u00c6RKSBANKEN<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"karl<"
|
|
|
|
"Karl<"
|
2002-07-30 20:18:18 +00:00
|
|
|
"'NIELS J\u00d8RGEN'<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"NIELS-J\u00d8RGEN<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"NIELSEN<"
|
2002-07-30 20:18:18 +00:00
|
|
|
"'R\u00c9E, A'<"
|
|
|
|
"'REE, B'<"
|
|
|
|
"'R\u00c9E, L'<"
|
|
|
|
"'REE, V'<"
|
|
|
|
"'SCHYTT, B'<"
|
|
|
|
"'SCHYTT, H'<"
|
|
|
|
"'SCH\u00dcTT, H'<"
|
|
|
|
"'SCHYTT, L'<"
|
|
|
|
"'SCH\u00dcTT, M'<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"SS<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u00df<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"SSA<"
|
2002-07-30 20:18:18 +00:00
|
|
|
"'STORE VILDMOSE'<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"STOREK\u00c6R0<"
|
2002-07-30 20:18:18 +00:00
|
|
|
"'STORM PETERSEN'<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"STORMLY<"
|
|
|
|
"THORVALD<"
|
|
|
|
"THORVARDUR<"
|
|
|
|
"THYGESEN<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u00feORVAR\u00d0UR<"
|
2002-07-30 20:18:18 +00:00
|
|
|
"'VESTERG\u00c5RD, A'<"
|
|
|
|
"'VESTERGAARD, A'<"
|
|
|
|
"'VESTERG\u00c5RD, B'<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u00c6BLE<"
|
|
|
|
"\u00c4BLE<"
|
|
|
|
"\u00d8BERG<"
|
|
|
|
"\u00d6BERG",
|
2002-04-30 23:04:47 +00:00
|
|
|
|
|
|
|
// constUCharCollationDanishTest::testNTList[][CollationDanishTest::MAX_TOKEN_LEN]="
|
|
|
|
"andere<"
|
|
|
|
"chaque<"
|
|
|
|
"chemin<"
|
|
|
|
"cote<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"cot\u00e9<"
|
|
|
|
"c\u00f4te<"
|
|
|
|
"c\u00f4t\u00e9<"
|
|
|
|
"\u010du\u010d\u0113t<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"Czech<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"hi\u0161a<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"irdisch<"
|
|
|
|
"lie<"
|
|
|
|
"lire<"
|
|
|
|
"llama<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"l\u00f5ug<"
|
|
|
|
"l\u00f2za<"
|
|
|
|
"lu\u010d<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"luck<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"L\u00fcbeck<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"lye<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"l\u00e4vi<"
|
|
|
|
"L\u00f6wen<"
|
|
|
|
"m\u00e0\u0161ta<"
|
|
|
|
"m\u00eer<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"myndig<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"M\u00e4nner<"
|
|
|
|
"m\u00f6chten<"
|
|
|
|
"pi\u00f1a<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"pint<"
|
|
|
|
"pylon<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u0161\u00e0ran<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"savoir<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u0160erb\u016bra<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"Sietla<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u015blub<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"subtle<"
|
|
|
|
"symbol<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"s\u00e4mtlich<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"waffle<"
|
|
|
|
"verkehrt<"
|
|
|
|
"wood<"
|
|
|
|
"vox<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"v\u00e4ga<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"yen<"
|
|
|
|
"yuan<"
|
|
|
|
"yucca<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u017eal<"
|
|
|
|
"\u017eena<"
|
|
|
|
"\u017den\u0113va<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"zoo0<"
|
|
|
|
"Zviedrija<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"Z\u00fcrich<"
|
2002-04-30 23:04:47 +00:00
|
|
|
"zysk0<"
|
2002-06-04 08:06:49 +00:00
|
|
|
"\u00e4ndere"
|
2002-04-30 23:04:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|