System.out.println(lastNumber + "..." + 199 + ": " + lastValue);
*/
log("test pattern: '" + testPattern + "'");
for (int i = 0; i < locales.length; ++i) {
try {
PluralFormat plf = new PluralFormat(new ULocale(locales[i]), testPattern);
log("plf: " + plf);
String expected = (String) changes.get(new Integer(0));
for (int n = 0; n < 200; ++n) {
if (changes.get(new Integer(n)) != null) {
expected = (String) changes.get(new Integer(n));
}
assertEquals("Locale: " + locales[i] + ", number: " + n,
expected, plf.format(n));
}
} catch (IllegalArgumentException e) {
errln(e.getMessage() + " locale: " + locales[i] + " pattern: '" + testPattern + "' " + System.currentTimeMillis());
}
}