ICU-1880 added resource bundle for data driven collation test. Should be shared by intltest and cintltst (and icu4j also)

X-SVN-Rev: 8552
This commit is contained in:
Vladimir Weinstein 2002-04-30 23:04:47 +00:00
parent 7516bc1023
commit 51e48aab7d
2 changed files with 148 additions and 1 deletions

View File

@ -0,0 +1,146 @@
DataDrivenCollationTest {
TestPurpose { "This is locale based collation test for Danish" }
TestDataParsing { "The following entries are separate tests containing test data for various locales."
"Each entry has the following fields: "
"TestLocale - the locale that we should instantiate collator with."
"ArgumentStrength - strength of collator"
"TestData - set of test cases, which are sequences of strings that will be parsed"
"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."
}
TestData {
da_TestPrimary {
TestLocale { "da" }
Arguments { "[strength 1]" }
TestData {
"Lvi=Lwi",
"Lävi<Löwi",
"Lübeck=Lybeck",
}
}
da_TestTertiary {
TestLocale { "da" }
Arguments { "[strength 3]" }
TestData {
"Luc<luck",
"luck<Lübeck",
"Lübeck>lybeck",
"Lävi<Löwe",
"Löww<mast",
// constUCharCollationDanishTest::testBugs[][CollationDanishTest::MAX_TOKEN_LEN]="
"A/S<"
"ANDRE<"
"ANDRÉ<"
"ANDREAS<"
"AS<"
"CA<"
"ÇA<"
"CB<"
"ÇC<"
"D.S.B.<"
"DA<"
"DB<"
"DSB<"
"DSC<"
"ÐA<"
"ÐC<"
"EKSTRA_ARBEJDE<"
"EKSTRABUD0<"
"HØST<"
"HAAG<"
"HÅNDBOG<"
"HAANDVÆRKSBANKEN<"
"karl<"
"Karl<"
"NIELS\\ JØRGEN<"
"NIELS-JØRGEN<"
"NIELSEN<"
"RÉE,\\ A<"
"REE,\\ B<"
"RÉE,\\ L<"
"REE,\\ V<"
"SCHYTT,\\ B<"
"SCHYTT,\\ H<"
"SCHÜTT,\\ H<"
"SCHYTT,\\ L<"
"SCHÜTT,\\ M<"
"SS<"
"ß<"
"SSA<"
"STORE\\ VILDMOSE<"
"STOREKÆR0<"
"STORM\\ PETERSEN<"
"STORMLY<"
"THORVALD<"
"THORVARDUR<"
"THYGESEN<"
"þORVARÐUR<"
"VESTERGÅRD,\\ A<"
"VESTERGAARD,\\ A<"
"VESTERGÅRD,\\ B<"
"ÆBLE<"
"ÄBLE<"
"ØBERG<"
"ÖBERG",
// constUCharCollationDanishTest::testNTList[][CollationDanishTest::MAX_TOKEN_LEN]="
"andere<"
"chaque<"
"chemin<"
"cote<"
"coté<"
"côte<"
"côté<"
"čučēt<"
"Czech<"
"hiša<"
"irdisch<"
"lie<"
"lire<"
"llama<"
"lõug<"
"lòza<"
"luč<"
"luck<"
"Lübeck<"
"lye<"
"lävi<"
"Löwen<"
"màšta<"
"mîr<"
"myndig<"
"Männer<"
"möchten<"
"piña<"
"pint<"
"pylon<"
"šàran<"
"savoir<"
"Šerbūra<"
"Sietla<"
"ślub<"
"subtle<"
"symbol<"
"sämtlich<"
"waffle<"
"verkehrt<"
"wood<"
"vox<"
"väga<"
"yen<"
"yuan<"
"yucca<"
"žal<"
"žena<"
"Ženēva<"
"zoo0<"
"Zviedrija<"
"Zürich<"
"zysk0<"
"ändere"
}
}
}
}

View File

@ -11,7 +11,7 @@
ALL : "$(TESTDATAOUT)\testdata.dat"
@echo Test data is built.
"$(TESTDATAOUT)\testdata.dat" : "$(TESTDATABLD)\ja_data.res" "$(TESTDATABLD)\casing.res" "$(TESTDATABLD)\root.res" "$(TESTDATABLD)\te.res" "$(TESTDATABLD)\te_IN.res" "$(TESTDATABLD)\testtypes.res" "$(TESTDATABLD)\testempty.res" "$(TESTDATABLD)\ja_data.res" $(TESTDATAOUT)test.dat
"$(TESTDATAOUT)\testdata.dat" : "$(TESTDATABLD)\ja_data.res" "$(TESTDATABLD)\casing.res" "$(TESTDATABLD)\root.res" "$(TESTDATABLD)\te.res" "$(TESTDATABLD)\te_IN.res" "$(TESTDATABLD)\testtypes.res" "$(TESTDATABLD)\testempty.res" "$(TESTDATABLD)\ja_data.res" "$(TESTDATAOUT)\DataDrivenCollationTest.res" $(TESTDATAOUT)test.dat
@echo Building test data
copy "$(TESTDATABLD)\te.res" "$(TESTDATAOUT)\testudata_nam.typ"
@"$(ICUTOOLS)\pkgdata\$(CFG)\pkgdata" -v -m common -c -p testdata -O "$(PKGOPT)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" <<
@ -22,6 +22,7 @@ te_IN.res
testtypes.res
testempty.res
ja_data.res
DataDrivenCollationTest.res
test.dat
<<