ICU-10222 (J) Update tests for new Latvian plural rules

X-SVN-Rev: 33967
This commit is contained in:
Peter Edberg 2013-07-23 20:51:39 +00:00
parent 61a59e26a1
commit e276c69769
2 changed files with 13 additions and 7 deletions

View File

@ -101,14 +101,20 @@ public class PluralFormatTest extends TestFmwk {
Map changes = new HashMap();
changes.put(new Integer(0), "zero");
changes.put(new Integer(1), "one");
changes.put(new Integer(2), "other");
for (int i = 0; i < 20; ++i) {
if (i == 11) {
continue;
for (int i = 2; i < 20; ++i) {
if (i < 10) {
changes.put(new Integer(i), "other");
} else {
changes.put(new Integer(i), "zero");
}
changes.put(new Integer(i*10), "zero");
changes.put(new Integer(i*10 + 1), "one");
changes.put(new Integer(i*10 + 2), "other");
if (i == 11) {
changes.put(new Integer(i*10 + 1), "zero");
changes.put(new Integer(i*10 + 2), "zero");
} else {
changes.put(new Integer(i*10 + 1), "one");
changes.put(new Integer(i*10 + 2), "other");
}
}
helperTestRules(localeIDs, testPattern, changes);
}

View File

@ -702,7 +702,7 @@ public class PluralRulesTest extends TestFmwk {
// [zero, one, other]
"ksh; zero: 0, 0.0, 0.00; one: 1, 1.0, 1.00; other: 0.03, 0.1, 0.3, 0.30, 1.03, 1.3, 1.30, 1.99, 2, 2.0, 2.00, 2.01, 2.1, 2.10, 3",
"lag; zero: 0, 0.0, 0.00; one: 0.02, 0.1, 0.2, 0.20, 1, 1.0, 1.00, 1.02, 1.2, 1.20, 1.99; other: 2, 2.0, 2.00, 2.01, 2.1, 2.10",
"lv; zero: 0, 0.0, 0.00, 10, 30; one: 0.1, 0.31, 1, 1.0, 1.00, 21, 31, 41; other: 1.30, 1.99, 2, 2.0, 2.00, 2.30, 11, 29, 49, 111, 311",
"lv; zero: 0, 0.0, 0.00, 10, 11, 30, 111, 311; one: 0.1, 0.31, 1, 1.0, 1.00, 21, 31, 41; other: 1.30, 1.99, 2, 2.0, 2.00, 2.30, 29, 49",
// [one, two, other]
"iu,kw,naq,se,sma,smi,smj,smn,sms; one: 1, 1.0, 1.00; two: 2, 2.0, 2.00; other: 0, 0.0, 0.00, 0.02, 0.1, 0.2, 0.20, 1.04, 1.4, 1.40, 1.99, 2.04, 2.4, 2.40, 3, 4",