ICU-8474 Plural Rules, tweak samples test to stop false failures.
X-SVN-Rev: 34085
This commit is contained in:
parent
f3dce2ad42
commit
9685634a0f
@ -195,6 +195,14 @@ public class PluralFormatUnitTest extends TestFmwk {
|
||||
Set<String> keywords = rules.getKeywords();
|
||||
for (String keyword : keywords) {
|
||||
Collection<Double> list = rules.getSamples(keyword);
|
||||
// TODO: the locales excepted here have legitimately have no integer
|
||||
// sample values. How best to handle this?
|
||||
if (localeName.equals("be") && keyword.equals("other")) continue;
|
||||
if (localeName.equals("cs") && keyword.equals("many")) continue;
|
||||
if (localeName.equals("lt") && keyword.equals("many")) continue;
|
||||
if (localeName.equals("pl") && keyword.equals("other")) continue;
|
||||
if (localeName.equals("uk") && keyword.equals("other")) continue;
|
||||
|
||||
if (list == null || list.size() == 0) {
|
||||
errln("Empty list for " + localeName + " : " + keyword);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user