Home | History | Annotate | Download | only in intltest

Lines Matching refs:EXPECTED

125     } EXPECTED[] = {
155 {UDAT_HOUR, "j", "en", "h a"}, // (fixed expected result per ticket 6872<-6626)
156 {UDAT_HOUR24, "H", "en", "HH"}, // (fixed expected result per ticket 6872<-6626
159 {UDAT_HOUR_MINUTE, "jm","en","h:mm a"}, // (fixed expected result per ticket 6872<-7180)
160 {UDAT_HOUR24_MINUTE, "Hm", "en", "HH:mm"}, // (fixed expected result per ticket 6872<-6626)
163 {UDAT_HOUR_MINUTE_SECOND, "jms","en","h:mm:ss a"}, // (fixed expected result per ticket 6872<-7180)
164 {UDAT_HOUR24_MINUTE_SECOND, "Hms","en","HH:mm:ss"}, // (fixed expected result per ticket 6872<-6626)
165 {UDAT_MINUTE_SECOND, "ms", "en", "mm:ss"}, // (fixed expected result per ticket 6872<-6626)
179 for (int32_t i = 0; i < UPRV_LENGTHOF(EXPECTED); i++) {
181 UnicodeString actualPattern(EXPECTED[i].actualPattern, -1, US_INV);
182 UnicodeString expectedPattern(EXPECTED[i].expectedPattern, -1, US_INV);
183 Locale locale(EXPECTED[i].localeID);
185 errln("FAILURE! Expected pattern: " + expectedPattern +
199 if(errorCode.logDataIfFailureAndReset("DateTimePatternGenerator::createInstance() failed for locale ID \"%s\"", EXPECTED[i].localeID)) {
208 EXPECTED[i].actualPattern, EXPECTED[i].localeID);
212 UnicodeString expectedLocalPattern(EXPECTED[i].expectedLocalPattern, -1, US_INV);
218 errln("FAILURE! Expected local pattern: " + expectedLocalPattern
222 errln("FAILURE! Expected local pattern: " + expectedLocalPattern
379 // hour is the expected hour of day, in units of seconds
536 // Expected output field values for above DateFormats on aug13
538 const char* EXPECTED[] = {
576 const int32_t EXPECTED_LENGTH = sizeof(EXPECTED)/sizeof(EXPECTED[0]);
601 ctou(EXPECTED[exp]), field);
618 ctou(EXPECTED[expBase + i]), field);
685 DateFormatTest::tryPat994(SimpleDateFormat* format, const char* pat, const char* str, UDate expected)
696 if (expected != null) errln((UnicodeString)"FAIL: Expected " + dateToString(expected));
704 if (expected == null ||
705 !(date == expected)) errln((UnicodeString)"FAIL: Expected null");//" + expected);
706 if (!(f == str)) errln(UnicodeString("FAIL: Expected ") + str);
711 // if (expected != null) errln((UnicodeString)"FAIL: Expected " + dateToString(expected));
782 DateFormatTest::testIt917(SimpleDateFormat* fmt, UnicodeString& str, UDate expected)
797 if (!(o.getDate() == expected)) errln((UnicodeString)"FAIL: Expected " + dateToString(expected));
800 if (!(formatted == str)) errln((UnicodeString)"FAIL: Expected " + str);
872 if (myDate != expBigD) errln((UnicodeString)"FAIL: bigD - Expected " + dateToString(expBigD));
879 if (myDate != expLittleD) errln((UnicodeString)"FAIL: littleD - Expected " + dateToString(expLittleD));
895 UDate expected = date(year, month, day);
902 tryPattern(*sdf, today, 0, expected);
903 tryPattern(*sdf, today, "G yyyy DDD", expected);
911 DateFormatTest::tryPattern(SimpleDateFormat& sdf, UDate d, const char* pattern, UDate expected)
922 if (d2 != expected) errln((UnicodeString)"FAIL: Expected " + dateToString(expected));
952 if (0 != dateString.compareBetween(0, exp.length(), exp, 0, exp.length())) errln((UnicodeString)"FAIL: Expected " + exp);
979 UnicodeString expected("March 1, 2000 at 1:23:45 AM ");
1008 if (0!=format.compareBetween(0, expected.length(), expected, 0, expected.length()))
1009 errln((UnicodeString)"FAIL: Parse \"" + text + "\", pattern \"" + pattern + "\", expected " + expected + " got " + format);
1102 errln((UnicodeString)"FAIL: Expected exception during parse");
1113 const char* expected = inputStrings[i + 1 + index];
1133 if (expected == 0)
1134 errln((UnicodeString)"FAIL: Expected parse failure, got " + result);
1135 else if (!(result == expected))
1136 errln(UnicodeString("FAIL: Parse \"") + s + UnicodeString("\", expected ") + expected + UnicodeString(", got ") + result);
1139 else if (expected != 0) {
1140 errln(UnicodeString("FAIL: Expected ") + expected + " from \"" +
1176 DateFormatTest::parse2DigitYear(DateFormat& fmt, const char* str, UDate expected)
1184 if (d != expected) errln((UnicodeString)"FAIL: Expected " + expected);
1217 if (tempDate != date) errln((UnicodeString)"FAIL: Expected " + dateToString(date));
1289 errln("FAIL: Expected " + DATA[i+1] + ", got " + result);
1332 errln((UnicodeString)"FAIL: Expected " + expectedFRENCH);
1337 errln((UnicodeString)"FAIL: Expected " + expectedUS);
1473 // pattern, input, expected parse or NULL if expect parse failure
1518 // pattern, input, expected parse or NULL if expect parse failure
1539 // pattern, input, expected parse or null if expect parse failure
1907 * [i+2] = expected parse result (parsed with pattern [0])
1930 const char* expected = data[i++];
1949 if (expected != NULL) {
1950 expstr = expected;
1953 // This only happens if expected is in wrong format --
1965 currentPat + " => " + gotstr + ", expected " +
2352 errln("Expected " + tests[i].expected_result
2358 + " expected " + tests[i].expected_result);
2425 // calculate the expected string
2429 full->format(*c, expect, pos); // expected = normal full
2436 errln("FAIL: Relative Format ["+bannerStr+"] of "+normalResult+" failed, expected "+expect+" but got " + result);
2453 errln("FAIL: Relative Parse ["+bannerStr+"] of "+result+" failed, expected
3421 errln(info[0] + ";" + info[1] + ";" + info[2] + ";" + info[3] + " expected: '" +
3495 + "\n Expected result=" + refStr
3528 + "\n Expected time=" + calendars[i]->getTime(status)
3529 + "\n Expected time zone=" + calendars[i]->getTimeZone().getID(tzid)
3724 // pattern, input, expected output (in quotes)
3793 errln("FAIL: Failed to parse " + s1 + " parsed: " + dp1 + " expected: " + dexp1);
3796 errln("FAIL: Failed to parse " + s2 + " parsed: " + dp2 + " expected: " + dexp2);
3853 errln("FAIL, err when expected success: Locale \"" + UnicodeString(itemPtr->localeStr) + "\", lenient " + itemPtr->lenient +
3857 errln("FAIL, expected err but got none: Locale \"" + UnicodeString(itemPtr->localeStr) + "\", lenient " + itemPtr->lenient +
3908 // check that roundtrip worked as expected
3909 UnicodeString expected = data[i+1];
3910 if (out != expected) {
3911 dataerrln((UnicodeString)"FAIL: " + in + " -> " + out + " expected -> " + expected);
3935 UnicodeString expected = "\\u4e8c\\u3007\\u3007\\u4e5d\\u5e74\\u4e03\\u6708\\u4e8c\\u5341\\u516b\\u65e5";
3936 expected = expected.unescape();
3937 if (result != expected) {
3938 dataerrln((UnicodeString)"FAIL: -> " + result + " expected -> " + expected);
3941 UDate parsedate = sdf->parse(expected,status);
3948 dataerrln((UnicodeString)"FAIL: parsed -> " + parsedres + " expected -> " + expres);
3967 errln((UnicodeString)"FAIL: Incorrect output parse position: actual=" + pos.getIndex() + " expected=3");
4018 + pos.getIndex() + ", expected - " + resPos);
4052 // locale date style; expected formats for the 3 dates above
4124 ", expected \"" + itemPtr->dateString[idate] + "\", got \"" + result + "\"");
4141 ", string \"" + result + "\", expected " + datePtr->year +"-"+datePtr->month+"("+datePtr->isLeapMonth+")-"+datePtr->day + ", got pos " +
4171 //locale pattern capitalizationContext expected formatted date
4211 ", expected " + itemPtr->expectedFormat + ", got " + result);
4323 ", expected \"" + caftItemPtr->formattedDate + "\", got \"" + result + "\"");
4336 ", style " + itemPtr->style + ", string \"" + result + "\", expected " +
4421 UnicodeString expectedResult; // empty string indicates expected error
4429 //locale leniency parse String pattern expected result
4486 errln("error: unexpected format result. pattern["+itemPtr->pattern+"] expected[" + itemPtr->expectedResult + "] but result was[" + formatResult + "]");
4500 UnicodeString expectedResult; // empty string indicates expected error
4506 // leniency parse String pattern expected result
4579 errln("error: unexpected format result. expected[" + itemPtr->expectedResult + "] but result was[" + formatResult + "]");
4709 UnicodeString expected = ((UnicodeString)DATA[i][1]).unescape();;
4711 if (result != expected)
4712 errln("FAIL: Expected " + expected + " get: " + result);
4796 UnicodeString expected("\\u0698\\u0627\\u0646\\u0648\\u06CC\\u0647\\u0654"); // Android-changed
4797 assertEquals("", expected.unescape(), months[0]);
4815 UnicodeString expected("Tishri");
4816 assertEquals("", expected, months[0]);