ICU-2918 test for whitespace skipping in parsing of prefix directive

X-SVN-Rev: 12118
This commit is contained in:
Vladimir Weinstein 2003-05-27 16:50:03 +00:00
parent 73e41ffbff
commit 8714b120aa
2 changed files with 16 additions and 1 deletions

View File

@ -3215,6 +3215,8 @@ static void TestPrefix(void) {
{ "&z <<< z|a",
{"zz", "za"}, 2 },
{ "&z <<< z| a",
{"zz", "za"}, 2 },
{ "[strength I]"
"&a=\\ud900\\udc25"
"&z<<<\\ud900\\udc25|a",
@ -4018,6 +4020,15 @@ static void TestEquals(void) {
}
static void TestPUA(void) {
const char* cases[] = {
"AA", "A\\ue000"
};
genericLocaleStarter("da", cases, 2);
}
#define TEST(x) addTest(root, &x, "tscoll/cmsccoll/" # x)
void addMiscCollTest(TestNode** root)
@ -4070,6 +4081,7 @@ void addMiscCollTest(TestNode** root)
TEST(TestPartialSortKeyTermination);
TEST(TestSettings);
TEST(TestEquals);
TEST(TestPUA);
}
#endif /* #if !UCONFIG_NO_COLLATION */

View File

@ -285,10 +285,12 @@ public class CollationMiscTest extends TestFmwk{
public void TestPrefix() {
String[] rules = {
"&z <<< z|a",
"&z <<< z|a",
"&z <<< z| a",
"[strength I]&a=\ud900\udc25&z<<<\ud900\udc25|a",
};
String[][] data = {
{"zz", "za"},
{"zz", "za"},
{"aa", "az", "\ud900\udc25z", "\ud900\udc25a", "zz"},
};
@ -1707,4 +1709,5 @@ public class CollationMiscTest extends TestFmwk{
doTest(collator, " a", "a", 0); // works properly
doTest(collator, "a", "a ", 0); // inconsistent results
}
}