ICU-21957 Clean-up of TODO and logKnownIssue entries (BRS task):

Removed logKnownIssue(ICU-21322) in plurults.cpp, ICU-21322 is done and the
entire if-statement was commented out.

Replaced CLDR-13700 with CLDR-13701 in several TODOs. 13700 is a duplicate of
13701.

Likewise for CLDR-14502 --> CLDR-14582.

PR#1999 from ICU 71 release missed some of the cases.
This commit is contained in:
gnrunge 2022-09-01 14:09:38 -07:00 committed by Norbert Runge
parent 4ab713b1c6
commit baa104b50b
7 changed files with 10 additions and 15 deletions

View file

@ -718,7 +718,7 @@ private:
case COMPOUND_PART_PER:
if (sawAnd) {
// Mixed compound units not yet supported,
// TODO(CLDR-13700).
// TODO(CLDR-13701).
status = kUnitIdentifierSyntaxError;
return result;
}
@ -735,7 +735,7 @@ private:
case COMPOUND_PART_AND:
if (fAfterPer) {
// Can't start with "-and-", and mixed compound units
// not yet supported, TODO(CLDR-13700).
// not yet supported, TODO(CLDR-13701).
status = kUnitIdentifierSyntaxError;
return result;
}

View file

@ -1569,7 +1569,7 @@ void MixedUnitLongNameHandler::forMeasureUnit(const Locale &loc,
for (int32_t i = 0; i < fillIn->fMixedUnitCount; i++) {
// Grab data for each of the components.
UnicodeString *unitData = &fillIn->fMixedUnitData[i * ARRAY_LENGTH];
// TODO(CLDR-14502): check from the CLDR-14502 ticket whether this
// TODO(CLDR-14582): check from the CLDR-14582 ticket whether this
// propagation of unitDisplayCase is correct:
getMeasureData(loc, impl.singleUnits[i]->build(status), width, unitDisplayCase, unitData,
status);

View file

@ -4923,7 +4923,7 @@ void MeasureFormatTest::TestInvalidIdentifiers() {
"per-hour-and-hertz",
"hertz-and-per-hour",
// Compound units not supported in mixed units yet. TODO(CLDR-13700).
// Compound units not supported in mixed units yet. TODO(CLDR-13701).
"kilonewton-meter-and-newton-meter",
};
@ -5620,4 +5620,3 @@ extern IntlTest *createMeasureFormatTest() {
}
#endif

View file

@ -416,10 +416,6 @@ void PluralRulesTest::testGetSamples() {
double values[1000];
for (int32_t i = 0; U_SUCCESS(status) && i < numLocales; ++i) {
//if (uprv_strcmp(locales[i].getLanguage(), "fr") == 0 &&
// logKnownIssue("21322", "PluralRules::getSamples cannot distinguish 1e5 from 100000")) {
// continue;
//}
LocalPointer<PluralRules> rules(PluralRules::forLocale(locales[i], status));
if (U_FAILURE(status)) {
break;

View file

@ -415,7 +415,7 @@ public class MeasureUnitImpl {
private int fIndex = 0;
// Set to true when we've seen a "-per-" or a "per-", after which all units
// are in the denominator. Until we find an "-and-", at which point the
// identifier is invalid pending TODO(CLDR-13700).
// identifier is invalid pending TODO(CLDR-13701).
private boolean fAfterPer = false;
// If an "-and-" was parsed prior to finding the "single
// * unit", sawAnd is set to true. If not, it is left as is.
@ -549,7 +549,7 @@ public class MeasureUnitImpl {
* <p>
*
* @throws IllegalArgumentException if we parse both compound units and "-and-", since mixed
* compound units are not yet supported - TODO(CLDR-13700).
* compound units are not yet supported - TODO(CLDR-13701).
*/
private SingleUnitImpl nextSingleUnit() {
SingleUnitImpl result = new SingleUnitImpl();
@ -585,7 +585,7 @@ public class MeasureUnitImpl {
case PER:
if (fSawAnd) {
throw new IllegalArgumentException("Mixed compound units not yet supported");
// TODO(CLDR-13700).
// TODO(CLDR-13701).
}
fAfterPer = true;
@ -600,7 +600,7 @@ public class MeasureUnitImpl {
case AND:
if (fAfterPer) {
// not yet supported, TODO(CLDR-13700).
// not yet supported, TODO(CLDR-13701).
throw new IllegalArgumentException("Can't start with \"-and-\", and mixed compound units");
}
fSawAnd = true;

View file

@ -4184,7 +4184,7 @@ public class MeasureUnitTest extends TestFmwk {
"per-hour-and-hertz",
"hertz-and-per-hour",
// Compound units not supported in mixed units yet. TODO(CLDR-13700).
// Compound units not supported in mixed units yet. TODO(CLDR-13701).
"kilonewton-meter-and-newton-meter",
};

View file

@ -2445,7 +2445,7 @@ public class NumberFormatterApiTest extends TestFmwk {
new UnitInflectionTestCase("centimeter", "de", null, 1, "1 Zentimeter"),
new UnitInflectionTestCase("centimeter", "de", "genitive", 1, "1 Zentimeters"),
new UnitInflectionTestCase("centimeter", "de", "dative", 10, "10 Zentimetern"),
// TODO(CLDR-14502): check that these inflections are correct, and
// TODO(CLDR-14582): check that these inflections are correct, and
// whether CLDR needs any rules for them (presumably CLDR spec
// should mention it, if it's a consistent rule):
new UnitInflectionTestCase("meter-and-centimeter", "de", null, 1.01,