ICU-10273 fix bug in plural rules parser, caused failure of CompactDecimalFormatTest
X-SVN-Rev: 34111
This commit is contained in:
parent
3b26d31728
commit
6ddf597269
@ -428,7 +428,7 @@ PluralRuleParser::parse(const UnicodeString& ruleData, PluralRules *prules, UErr
|
||||
rangeLowIdx = 0;
|
||||
rangeHiIdx = 1;
|
||||
curAndConstraint->value=PLURAL_RANGE_HIGH;
|
||||
curAndConstraint->integerOnly = (type == tIn);
|
||||
curAndConstraint->integerOnly = (type != tWithin);
|
||||
break;
|
||||
case tNumber:
|
||||
U_ASSERT(curAndConstraint != NULL);
|
||||
|
@ -276,9 +276,7 @@ void CompactDecimalFormatTest::TestSwahiliShortNegative() {
|
||||
}
|
||||
|
||||
void CompactDecimalFormatTest::TestArabicLong() {
|
||||
// TODO(andy) This test unexpectedly started failing with the new plural rules.
|
||||
// Rules for "ar" didn't change.
|
||||
// CheckLocale("ar", UNUM_LONG, kArabicLong, LENGTHOF(kArabicLong));
|
||||
CheckLocale("ar", UNUM_LONG, kArabicLong, LENGTHOF(kArabicLong));
|
||||
}
|
||||
|
||||
void CompactDecimalFormatTest::TestSignificantDigits() {
|
||||
|
Loading…
Reference in New Issue
Block a user