ICU-10273 fix bug in plural rules parser, caused failure of CompactDecimalFormatTest

X-SVN-Rev: 34111
This commit is contained in:
Andy Heninger 2013-08-29 00:50:50 +00:00
parent 3b26d31728
commit 6ddf597269
2 changed files with 2 additions and 4 deletions

View File

@ -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);

View File

@ -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() {