Home
last modified time | relevance | path

Searched refs:assertRuleValue (Results 1 – 4 of 4) sorted by relevance

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRulesTest.java552 private void assertRuleValue(String rule, double value) {
566 assertRuleValue("n within 2..2", 2);
567 assertRuleValue("n is 1", 1);
568 assertRuleValue("n in 2..2", 2);
569 assertRuleValue("n in 3..4", PluralRules.NO_UNIQUE_VALUE);
570 assertRuleValue("n within 3..4", PluralRules.NO_UNIQUE_VALUE);
571 assertRuleValue("n is 2 or n is 2", 2);
572 assertRuleValue("n is 2 and n is 2", 2);
573 assertRuleValue("n is 2 or n is 3", PluralRules.NO_UNIQUE_VALUE);
574 assertRuleValue("n is 2 and n is 3", PluralRules.NO_UNIQUE_VALUE);
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralRulesTest.java556 private void assertRuleValue(String rule, double value) {
570 assertRuleValue("n within 2..2", 2);
571 assertRuleValue("n is 1", 1);
572 assertRuleValue("n in 2..2", 2);
573 assertRuleValue("n in 3..4", PluralRules.NO_UNIQUE_VALUE);
574 assertRuleValue("n within 3..4", PluralRules.NO_UNIQUE_VALUE);
575 assertRuleValue("n is 2 or n is 2", 2);
576 assertRuleValue("n is 2 and n is 2", 2);
577 assertRuleValue("n is 2 or n is 3", PluralRules.NO_UNIQUE_VALUE);
578 assertRuleValue("n is 2 and n is 3", PluralRules.NO_UNIQUE_VALUE);
[all …]
/external/icu/icu4c/source/test/intltest/
Dplurults.cpp347 PluralRulesTest::assertRuleValue(const UnicodeString& rule, double expected) { in assertRuleValue() function in PluralRulesTest
366 assertRuleValue("n is 1", 1); in testGetUniqueKeywordValue()
367 assertRuleValue("n in 2..2", 2); in testGetUniqueKeywordValue()
368 assertRuleValue("n within 2..2", 2); in testGetUniqueKeywordValue()
369 assertRuleValue("n in 3..4", UPLRULES_NO_UNIQUE_VALUE); in testGetUniqueKeywordValue()
370 assertRuleValue("n within 3..4", UPLRULES_NO_UNIQUE_VALUE); in testGetUniqueKeywordValue()
371 assertRuleValue("n is 2 or n is 2", 2); in testGetUniqueKeywordValue()
372 assertRuleValue("n is 2 and n is 2", 2); in testGetUniqueKeywordValue()
373 assertRuleValue("n is 2 or n is 3", UPLRULES_NO_UNIQUE_VALUE); in testGetUniqueKeywordValue()
374 assertRuleValue("n is 2 and n is 3", UPLRULES_NO_UNIQUE_VALUE); in testGetUniqueKeywordValue()
[all …]
Dplurults.h39 void assertRuleValue(const UnicodeString& rule, double expected);