Home | History | Annotate | Download | only in intltest

Lines Matching defs:rules

108         errln("ERROR: clone plural rules test failed!");
112 errln("ERROR: clone plural rules test failed!");
118 errln("ERROR: clone plural rules test failed!");
122 // ======= Test empty plural rules
130 errln("ERROR: empty plural rules test failed! - exitting");
134 // ======= Test simple plural rules
144 errln("ERROR: simple plural rules failed! - exitting");
149 // ======= Test complex plural rules
172 errln("ERROR: complex plural rules failed! - exitting");
177 errln("ERROR: complex plural rules failed! - exitting");
181 // ======= Test decimal fractions plural rules
195 errln("ERROR: plural rules for decimal fractions test failed!");
203 errln("ERROR: complex plural rules failed! - exitting");
278 PluralRules* rules[MAX_EQ_COL];
281 rules[j]=NULL;
285 rules[totalRules]=test.createRules(testEquRules[i][totalRules], status);
290 key[j] = rules[j]->select(n);
301 if (rules[j]!=NULL) {
302 delete rules[j];
352 PluralRules *rules = PluralRules::forLocale(locales[i], status);
356 StringEnumeration *keywords = rules->getKeywords(status);
358 delete rules;
363 int32_t count = rules->getSamples(*keyword, values, 4, status);
384 UnicodeString resultKeyword = rules->select(values[j]);
392 delete rules;
400 PluralRules *rules = PluralRules::createRules("a: n mod 10 in 5..8", status);
401 if (!rules) {
402 errln("couldn't instantiate rules");
406 UnicodeString keyword = rules->select((int32_t)26);
411 keyword = rules->select(26.5);
416 delete rules;
451 logln("could not create rules from '%s'\n", data[i]);