Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralRulesTest.java574 private void assertRuleValue(String rule, double value) {
589 assertRuleValue("n within 2..2", 2);
590 assertRuleValue("n is 1", 1);
591 assertRuleValue("n in 2..2", 2);
592 assertRuleValue("n in 3..4", PluralRules.NO_UNIQUE_VALUE);
593 assertRuleValue("n within 3..4", PluralRules.NO_UNIQUE_VALUE);
594 assertRuleValue("n is 2 or n is 2", 2);
595 assertRuleValue("n is 2 and n is 2", 2);
596 assertRuleValue("n is 2 or n is 3", PluralRules.NO_UNIQUE_VALUE);
597 assertRuleValue("n is 2 and n is 3", PluralRules.NO_UNIQUE_VALUE);
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRulesTest.java571 private void assertRuleValue(String rule, double value) {
586 assertRuleValue("n within 2..2", 2);
587 assertRuleValue("n is 1", 1);
588 assertRuleValue("n in 2..2", 2);
589 assertRuleValue("n in 3..4", PluralRules.NO_UNIQUE_VALUE);
590 assertRuleValue("n within 3..4", PluralRules.NO_UNIQUE_VALUE);
591 assertRuleValue("n is 2 or n is 2", 2);
592 assertRuleValue("n is 2 and n is 2", 2);
593 assertRuleValue("n is 2 or n is 3", PluralRules.NO_UNIQUE_VALUE);
594 assertRuleValue("n is 2 and n is 3", PluralRules.NO_UNIQUE_VALUE);
[all …]
/external/icu/icu4c/source/test/intltest/
Dplurults.cpp351 PluralRulesTest::assertRuleValue(const UnicodeString& rule, double expected) { in assertRuleValue() function in PluralRulesTest
370 assertRuleValue("n is 1", 1); in testGetUniqueKeywordValue()
371 assertRuleValue("n in 2..2", 2); in testGetUniqueKeywordValue()
372 assertRuleValue("n within 2..2", 2); in testGetUniqueKeywordValue()
373 assertRuleValue("n in 3..4", UPLRULES_NO_UNIQUE_VALUE); in testGetUniqueKeywordValue()
374 assertRuleValue("n within 3..4", UPLRULES_NO_UNIQUE_VALUE); in testGetUniqueKeywordValue()
375 assertRuleValue("n is 2 or n is 2", 2); in testGetUniqueKeywordValue()
376 assertRuleValue("n is 2 and n is 2", 2); in testGetUniqueKeywordValue()
377 assertRuleValue("n is 2 or n is 3", UPLRULES_NO_UNIQUE_VALUE); in testGetUniqueKeywordValue()
378 assertRuleValue("n is 2 and n is 3", UPLRULES_NO_UNIQUE_VALUE); in testGetUniqueKeywordValue()
[all …]
Dplurults.h41 void assertRuleValue(const UnicodeString& rule, double expected);