+void PluralRulesTest::testOrdinal() {
+ IcuTestErrorCode errorCode(*this, "testOrdinal");
+ LocalPointer<PluralRules> pr(PluralRules::forLocale("en", UPLURAL_TYPE_ORDINAL, errorCode));
+ if (errorCode.logIfFailureAndReset("PluralRules::forLocale(en, UPLURAL_TYPE_ORDINAL) failed")) {
+ return;
+ }
+ UnicodeString keyword = pr->select(2.);
+ if (keyword != UNICODE_STRING("two", 3)) {
+ dataerrln("PluralRules(en-ordinal).select(2) failed");
+ }
+}
+