Lines Matching refs:format
98 errln("ERROR: clone plural format test failed!");
270 if (pluralFmt.format((int32_t)1, status) != UNICODE_STRING_SIMPLE("even")) {
282 plResult = pluralFmt.format(i, status);
489 UnicodeString plResult = plFmt.format(0.0, status); // retrun ONE
490 plResult = plFmt.format(0.5, status); // retrun ONE
491 plResult = plFmt.format(1.0, status); // retrun ONE
492 plResult = plFmt.format(1.9, status); // retrun ONE
493 plResult = plFmt.format(2.0, status); // retrun OTHER
530 UnicodeString result = pf.format(i, status);
532 errln("PluralFormat.format(value %d) failed - %s", i, u_errorName(status));
537 UnicodeString message("PluralFormat.format(): Expected '", -1, US_INV);
545 mf.format(&args, 1, result.remove(), ignore, status);
547 errln("MessageFormat.format(value %d) failed - %s", i, u_errorName(status));
551 UnicodeString message("MessageFormat.format(): Expected '", -1, US_INV);
590 UnicodeString result = pf.format((int32_t)321, errorCode);
591 if (!errorCode.logIfFailureAndReset("PluralFormat.format(321) failed") &&
593 errln(UnicodeString("PluralFormat.format(321) wrong result string: ") + result);
595 result = pf.format((int32_t)22, errorCode);
596 if (!errorCode.logIfFailureAndReset("PluralFormat.format(22) failed") &&
598 errln(UnicodeString("PluralFormat.format(22) wrong result string: ") + result);
600 result = pf.format((int32_t)3, errorCode);
601 if (!errorCode.logIfFailureAndReset("PluralFormat.format(3) failed") &&
603 errln(UnicodeString("PluralFormat.format(3) wrong result string: ") + result);
612 result = pf2.format((int32_t)456, errorCode);
613 if (!errorCode.logIfFailureAndReset("PluralFormat.format(456) failed") &&
615 errln(UnicodeString("PluralFormat.format(456) wrong result string: ") + result);
617 result = pf2.format((int32_t)111, errorCode);
618 if (!errorCode.logIfFailureAndReset("PluralFormat.format(111) failed") &&
620 errln(UnicodeString("PluralFormat.format(111) wrong result string: ") + result);
631 UBool overwrite, // overwrite the numberFormat.format result
643 numResult = numFmt->format(i, numResult);
644 plResult = plFmt->format(i, status);
665 errln("ERROR: Unexpected plural format - got:"+plResult+ UnicodeString(" expecting:")+numResult);
705 plResult = plFmt.format(n, status);
707 errln("ERROR: Failed to format number in locale data tests with locale: "+
711 plResult = plFmt.format(n, status);
712 errln("ERROR: Unexpected format result in locale: "+UnicodeString(localeArray[i])+