From cae8e956b8995cf04b8019eb52b5ec5442e45913 Mon Sep 17 00:00:00 2001 From: Vladimir Weinstein Date: Fri, 14 May 2004 07:10:56 +0000 Subject: [PATCH] ICU-3699 removed obsolete test. We already have a new test in place for Chinese ordering. X-SVN-Rev: 15308 --- icu4c/source/test/cintltst/cmsccoll.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/icu4c/source/test/cintltst/cmsccoll.c b/icu4c/source/test/cintltst/cmsccoll.c index 954b4e0a55..76f9361c48 100644 --- a/icu4c/source/test/cintltst/cmsccoll.c +++ b/icu4c/source/test/cintltst/cmsccoll.c @@ -4378,6 +4378,7 @@ ucol_getFunctionalEquivalent(char* result, int32_t resultCapacity, isAvailable == FALSE); } +/* supercedes TestJ784 */ static void TestBeforePinyin(void) { char rules[] = { "&[before 2]A << \\u0101 <<< \\u0100 << \\u00E1 <<< \\u00C1 << \\u01CE <<< \\u01CD << \\u00E0 <<< \\u00C0" @@ -4399,6 +4400,7 @@ static void TestBeforePinyin(void) { }; genericRulesStarter(rules, test, sizeof(test)/sizeof(test[0])); + genericLocaleStarter("zh", test, sizeof(test)/sizeof(test[0])); } static void TestBeforeTightening(void) { @@ -4548,6 +4550,24 @@ static void TestMoreBefore(void) { } } +void TestTailorNULL( void ) { + const static char* rule = "&[last tertiary ignorable] <<< '\\u0000'"; + const static char* order[] = { "a", "\\u0000" }; + UErrorCode status = U_ZERO_ERROR; + UChar rlz[RULE_BUFFER_LEN] = { 0 }; + uint32_t rlen = 0; + UChar a = 1, null = 0; + UCollationResult res = UCOL_EQUAL; + + UCollator *coll = NULL; + + + rlen = u_unescape(rule, rlz, RULE_BUFFER_LEN); + coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); + res = ucol_strcoll(coll, &a, 1, &null, 1); + ucol_close(coll); + genericRulesStarter(rule, order, sizeof(order)/sizeof(order[0])); +} #define TEST(x) addTest(root, &x, "tscoll/cmsccoll/" # x) @@ -4579,7 +4599,7 @@ void addMiscCollTest(TestNode** root) TEST(TestImplicitTailoring); TEST(TestFCDProblem); TEST(TestEmptyRule); - TEST(TestJ784); + /*TEST(TestJ784);*/ /* 'zh' locale has changed - now it is getting tested by TestBeforePinyin */ TEST(TestJ815); /*TEST(TestJ831);*/ /* we changed lv locale */ TEST(TestBefore); @@ -4611,6 +4631,7 @@ void addMiscCollTest(TestNode** root) TEST(TestBeforePinyin); TEST(TestBeforeTightening); /*TEST(TestMoreBefore);*/ + TEST(TestTailorNULL); } #endif /* #if !UCONFIG_NO_COLLATION */