Lines Matching refs:TestMessageFormat
39 TestMessageFormat::runIndexedTest(int32_t index, UBool exec,
78 void TestMessageFormat::testBug3()
161 void TestMessageFormat::testBug1()
178 void TestMessageFormat::testBug2()
252 void TestMessageFormat::PatternTest()
316 errln(UnicodeString("TestMessageFormat::PatternTest failed test #2, i = ") + i);
330 logln("TestMessageFormat::PatternTest failed test #3");
334 errln("TestMessageFormat::PatternTest failed test #4");
335 logln("TestMessageFormat::PatternTest failed #4.");
372 void TestMessageFormat::sample()
394 void TestMessageFormat::testStaticFormat()
412 dataerrln("TestMessageFormat::testStaticFormat #1 - %s", u_errorName(err));
413 logln(UnicodeString("TestMessageFormat::testStaticFormat failed test #1 with error code ")+(int32_t)err);
420 errln("TestMessageFormat::testStaticFormat failed on test");
427 void TestMessageFormat::TestTurkishCasing()
462 void TestMessageFormat::testSimpleFormat(/* char* par */)
464 logln("running TestMessageFormat::testSimpleFormat");
479 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #1 - ") + u_errorName(err));
487 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #2")+string + " - " + u_errorName(err));
494 dataerrln(UnicodeString("TestMessageFormat::testSimpleFormat failed on test #3")+string + " - " + u_errorName(err));
500 void TestMessageFormat::testMsgFormatChoice(/* char* par */)
502 logln("running TestMessageFormat::testMsgFormatChoice");
518 errln("TestMessageFormat::testMsgFormatChoice failed on test #1");
526 errln("TestMessageFormat::testMsgFormatChoice failed on test #2");
534 dataerrln("TestMessageFormat::testMsgFormatChoice failed on test #3 - %s", u_errorName(err));
542 void TestMessageFormat::testMsgFormatPlural(/* char* par */)
544 logln("running TestMessageFormat::testMsgFormatPlural");
554 dataerrln("TestMessageFormat::testMsgFormatPlural #1 - argumentIndex - %s", u_errorName(err));
555 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #1 with error code ")+(int32_t)err);
568 dataerrln("TestMessageFormat::testMsgFormatPlural #1 - argumentName - %s", u_errorName(err));
569 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #1 with error code ")+(int32_t)err);
574 errln("TestMessageFormat::testMsgFormatPlural #1");
578 errln("TestMessageFormat::testMsgFormatPlural #1");
595 errln("TestMessageFormat::testMsgFormatPlural #2 - argumentName");
596 logln(UnicodeString("TestMessageFormat::testMsgFormatPlural #2 with error code ")+(int32_t)err);
601 errln("TestMessageFormat::testMsgFormatPlural #2");
605 errln("TestMessageFormat::testMsgFormatPlural #2");
616 errln("TestMessageFormat::test nested PluralFormat with argumentName");
617 logln(UnicodeString("TestMessageFormat::test nested PluralFormat with error code ")+(int32_t)err);
625 errln("TestMessageFormat::test nested PluralFormat with argumentName");
628 errln(UnicodeString("TestMessageFormat::test nested named PluralFormat: ") + argNameResult);
634 void TestMessageFormat::testApostropheInPluralAndSelect() {
651 void TestMessageFormat::internalFormat(MessageFormat* msgFmt ,
672 MessageFormat* TestMessageFormat::internalCreate(
679 logln(UnicodeString("TestMessageFormat::testMsgFormatSelect #1 with error code ")+(int32_t)status);
685 void TestMessageFormat::testMsgFormatSelect(/* char* par */)
687 logln("running TestMessageFormat::testMsgFormatSelect");
695 MessageFormat* msgFmt1 = internalCreate(t1.unescape(), Locale("fr"),err,(char*)"From TestMessageFormat::TestSelectFormat create t1");
708 internalFormat( msgFmt1 , testArgs[i], 2, exp[i].unescape() ,(char*)"From TestMessageFormat::testSelectFormat format t1");
717 MessageFormat* msgFmt2 = internalCreate(t2.unescape(), Locale("fr"),err,(char*)"From TestMessageFormat::TestSelectFormat create t2");
730 internalFormat( msgFmt2 , testArgs[i], 2, exp[i].unescape() ,(char*)"From TestMessageFormat::testSelectFormat format t2");
739 MessageFormat* msgFmt3 = internalCreate(t3, Locale("en"),err,(char*)"From TestMessageFormat::TestSelectFormat create t3");
752 internalFormat( msgFmt3 , testArgs[i], 1, exp[i] ,(char*)"From TestMessageFormat::testSelectFormat format t3");
762 MessageFormat* msgFmt4 = internalCreate(t4.unescape(), Locale("fr"),err,(char*)"From TestMessageFormat::TestSelectFormat create t4");
775 internalFormat( msgFmt4 , testArgs[i], 3, exp[i].unescape() ,(char*)"From TestMessageFormat::testSelectFormat format t4");
784 MessageFormat* msgFmt5 = internalCreate(t5.unescape(), Locale("fr"),err,(char*)"From TestMessageFormat::TestSelectFormat create t5");
800 internalFormat( msgFmt5 , testArgs[i], 3, exp[i].unescape() ,(char*)"From TestMessageFormat::testSelectFormat format t5");
809 MessageFormat* msgFmt6 = internalCreate(t6, Locale("de"),err,(char*)"From TestMessageFormat::TestSelectFormat create t6");
848 internalFormat( msgFmt6 , testArgs[i], 4, exp[i] ,(char*)"From TestMessageFormat::testSelectFormat format t6");
858 void TestMessageFormat::testCopyConstructor()
870 errln("TestMessageFormat::testCopyConstructor failed #1");
878 errln("TestMessageFormat::testCopyConstructor failed #2");
888 void TestMessageFormat::testAssignment()
900 errln( "TestMessageFormat::testAssignment failed #1");
908 errln("TestMessageFormat::testAssignment failed #2");
917 void TestMessageFormat::testClone()
929 errln("TestMessageFormat::testClone failed #1");
937 errln("TestMessageFormat::testClone failed #2");
946 void TestMessageFormat::testEquals()
952 errln( "TestMessageFormat::testEquals failed #1");
958 void TestMessageFormat::testNotEquals()
965 errln( "TestMessageFormat::testEquals failed #1");
971 errln( "TestMessageFormat::testEquals failed #1");
977 void TestMessageFormat::testSetLocale()
1059 void TestMessageFormat::testFormat()
1118 void TestMessageFormat::testParse()
1194 void TestMessageFormat::testAdopt()
1459 void TestMessageFormat::testCopyConstructor2() {
1467 void TestMessageFormat::TestUnlimitedArgsAndSubformats() {
1518 void TestMessageFormat::TestRBNF(void) {
1579 UnicodeString TestMessageFormat::GetPatternAndSkipSyntax(const MessagePattern& pattern) {
1591 void TestMessageFormat::TestApostropheMode() {
1632 void TestMessageFormat::TestCompatibleApostrophe() {
1693 void TestMessageFormat::testAutoQuoteApostrophe(void) {
1730 void TestMessageFormat::testCoverage(void) {
1802 void TestMessageFormat::testGetFormatNames() {
1847 void TestMessageFormat::TestTrimArgumentName() {
1868 void TestMessageFormat::TestSelectOrdinal() {
1900 void TestMessageFormat::TestDecimals() {
1971 void TestMessageFormat::TestArgIsPrefixOfAnother() {
1998 void TestMessageFormat::TestMessageFormatNumberSkeleton() {