/external/icu4c/test/intltest/ |
D | itmajor.cpp | 44 logln(#suite "---"); \ 55 logln("TestSuite Utilities---"); logln(); in runIndexedTest() 64 logln("TestSuite Normalize---"); logln(); in runIndexedTest() 74 logln("TestSuite Collator---"); logln(); in runIndexedTest() 84 logln("TestSuite Regex---"); logln(); in runIndexedTest() 94 logln("TestSuite Format---"); logln(); in runIndexedTest() 104 logln("TestSuite Transliterator---"); logln(); in runIndexedTest() 114 logln("TestSuite RuleBasedBreakIterator---"); logln(); in runIndexedTest() 123 logln("TestSuite RuleBasedNumberFormat----"); logln(); in runIndexedTest() 132 logln("TestSuite RuleBasedNumberFormat RT----"); logln(); in runIndexedTest() [all …]
|
D | tzbdtest.cpp | 19 if (exec) logln("TestSuite TestTimeZoneBoundary"); in runIndexedTest() 24 logln("TestBoundaries---"); logln(""); in runIndexedTest() 31 logln("TestNewRules---"); logln(""); in runIndexedTest() 38 logln("TestStepwise---"); logln(""); in runIndexedTest() 78 logln(UnicodeString("Error: ") + startMode + " not present in " + str); in findDaylightBoundaryUsingDate() 92 logln("Date Before: " + showDate(min)); in findDaylightBoundaryUsingDate() 93 logln("Date After: " + showDate(max)); in findDaylightBoundaryUsingDate() 99 … maxdelta <= INTERVAL) logln(UnicodeString("PASS: Expected boundary at ") + expectedBoundary); in findDaylightBoundaryUsingDate() 143 logln(tz->getID(str) + " Before: " + showDate(min)); in findDaylightBoundaryUsingTimeZone() 144 logln(tz->getID(str) + " After: " + showDate(max)); in findDaylightBoundaryUsingTimeZone() [all …]
|
D | dcfmapts.cpp | 24 if (exec) logln((UnicodeString)"TestSuite DecimalFormatAPI"); in runIndexedTest() 28 logln((UnicodeString)"DecimalFormat API test---"); logln((UnicodeString)""); in runIndexedTest() 41 logln((UnicodeString)"DecimalFormat Rounding test---"); in runIndexedTest() 47 logln((UnicodeString)"DecimalFormat Rounding Increment test---"); in runIndexedTest() 53 logln((UnicodeString)"CurrencyPluralInfo API test---"); in runIndexedTest() 71 logln((UnicodeString)"Testing DecimalFormat constructors"); in testAPI() 110 logln((UnicodeString)"Testing clone(), assignment and equality operators"); in testAPI() 129 logln((UnicodeString)"Testing various format() methods"); in testAPI() 140 logln( (UnicodeString) "" + (int32_t) d + " formatted to " + res1); in testAPI() 143 logln((UnicodeString) "" + (int32_t) l + " formatted to " + res2); in testAPI() [all …]
|
D | nmfmapts.cpp | 25 if (exec) logln("TestSuite NumberFormatAPI"); in runIndexedTest() 29 logln("NumberFormat API test---"); logln(""); in runIndexedTest() 42 logln("NumberFormat Registration test---"); logln(""); in runIndexedTest() 67 logln("Testing NumberFormat constructors"); in testAPI() 105 logln("Testing equality operator"); in testAPI() 115 logln("Testing various format() methods"); in testAPI() 126 logln( (UnicodeString) "" + (int32_t) d + " formatted to " + res1); in testAPI() 129 logln((UnicodeString) "" + (int32_t) l + " formatted to " + res2); in testAPI() 132 logln( (UnicodeString) "" + (int32_t) d + " formatted to " + res3); in testAPI() 135 logln((UnicodeString) "" + (int32_t) l + " formatted to " + res4); in testAPI() [all …]
|
D | pptest.cpp | 20 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 54 logln("PP constructor() tested."); in TestParsePosition() 63 logln("PP getIndex and constructor(int32_t) tested."); in TestParsePosition() 69 logln("PP setIndex tested."); in TestParsePosition() 80 logln("PP not equals tested."); in TestParsePosition() 85 logln("PP equals tested."); in TestParsePosition() 93 logln("PP operator= tested."); in TestParsePosition() 110 logln("FP constructor(int) and getField tested."); in TestFieldPosition() 117 logln("FP Constructor(FP&) passed"); in TestFieldPosition() 138 logln("FP setField and getField tested."); in TestFieldPosition() [all …]
|
D | dtfmapts.cpp | 26 if (exec) logln("TestSuite DateFormatAPI"); in runIndexedTest() 30 logln("DateFormat API test---"); logln(""); in runIndexedTest() 44 logln("TestEquals---"); logln(""); in runIndexedTest() 51 logln("TestNameHiding---"); logln(""); in runIndexedTest() 58 logln("TestCoverage---"); logln(""); in runIndexedTest() 135 logln("Testing DateFormat constructors"); in testAPI() 149 logln("Testing equality operator"); in testAPI() 159 logln("Testing various format() methods"); in testAPI() 172 logln( (UnicodeString) "" + d + " formatted to " + res1); in testAPI() 175 logln( (UnicodeString) "" + d + " formatted to " + res2); in testAPI() [all …]
|
D | astrotst.cpp | 23 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 30 if (exec) logln("TestSuite AstroTest"); in runIndexedTest() 89 logln(""); in TestSolarLongitude() 100 …logln((UnicodeString)"Sun position is " + result.toString() + (UnicodeString)"; " /* + result.toH… in TestSolarLongitude() 116 logln(""); in TestLunarPosition() 124 …logln((UnicodeString)"Moon position is " + result.toString() + (UnicodeString)"; " /* + result->t… in TestLunarPosition() 140 …logln((UnicodeString)"result is " + result.toString() + (UnicodeString)"; " /* + result.toHmsStri… in TestCoordinates() 168 logln("ecliptic: " + ecl.toString()); in TestCoverage() 180 logln((UnicodeString)" date: " + anAstro->getTime()); in TestCoverage() 181 logln((UnicodeString)" cent: " + anAstro->getJulianCentury()); in TestCoverage() [all …]
|
D | tsputil.cpp | 12 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 93 logln(UnicodeString("OK: IEEEremainder(") + x + ", " + y + ") is " + result); 209 logln(UnicodeString("OK: max(") + a + ", " + b + ") is " + result); in maxMinTest() 211 logln(UnicodeString("OK: min(") + a + ", " + b + ") is " + result); in maxMinTest() 222 logln("NaN tests may show that the expected NaN!=NaN etc. is not true on some"); in testNaN() 223 logln("platforms; however, ICU does not rely on them because it defines"); in testNaN() 224 logln("and uses uprv_isNaN(). Therefore, most failing NaN tests only report warnings."); in testNaN() 234 logln("End of NaN tests."); in testNaN() 404 logln("WARNING: NaN > NaN returned TRUE, should be FALSE"); in NaNGT() 408 logln("WARNING: NaN > +Infinity returned TRUE, should be FALSE"); in NaNGT() [all …]
|
D | sdtfmtts.cpp | 23 if (exec) logln("TestSuite SimpleDateFormatAPI"); in runIndexedTest() 27 logln("SimpleDateFormat API test---"); logln(""); in runIndexedTest() 52 logln("Testing SimpleDateFormat constructors"); in testAPI() 96 logln(UnicodeString("Override with: ") + override); in testAPI() 109 logln(UnicodeString("Override with: ") + override_bogus); in testAPI() 120 logln("Testing clone(), assignment and equality operators"); in testAPI() 139 logln("Testing various format() methods"); in testAPI() 148 logln( (UnicodeString) "" + d + " formatted to " + res1); in testAPI() 155 logln((UnicodeString) "" + fD.getDate() + " formatted to " + res2); in testAPI() 159 logln("Testing parse()"); in testAPI() [all …]
|
D | msfmrgts.cpp | 26 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 106 logln("Formatted with one extra param : " + tempBuffer); in Test4074764() 125 logln("Formatted with no params : " + tempBuffer); in Test4074764() 131 logln("Formatted with extra params : " + tempBuffer); in Test4074764() 188 logln("Apply with pattern : " + pattern1); in Test4031438() 200 logln("Formatted with 7 : " + tempBuffer); in Test4031438() 258 logln("Apply with pattern : " + pattern2); in Test4031438() 265 logln("Formatted with params : " + tempBuffer); in Test4031438() 294 logln(UnicodeString("unparsable string , should fail at ") + pos.getErrorIndex()); in Test4052223() 343 logln(cf == NULL ? "TRUE" : "FALSE"); in Test4104976() [all …]
|
D | caltest.cpp | 56 if (exec) logln("TestSuite TestCalendar"); in runIndexedTest() 61 logln("TestDOW943---"); logln(""); in runIndexedTest() 68 logln("TestClonesUnique908---"); logln(""); in runIndexedTest() 75 logln("TestGregorianChange768---"); logln(""); in runIndexedTest() 82 logln("TestDisambiguation765---"); logln(""); in runIndexedTest() 89 logln("TestGMTvsLocal4064654---"); logln(""); in runIndexedTest() 96 logln("TestAddSetOrder621---"); logln(""); in runIndexedTest() 103 logln("TestAdd520---"); logln(""); in runIndexedTest() 110 logln("TestFieldSet4781---"); logln(""); in runIndexedTest() 117 logln("TestSerialize337---"); logln(""); in runIndexedTest() [all …]
|
D | icusvtst.cpp | 193 logln(message); in confirmBoolean() 211 logln(temp); 228 logln(temp); in confirmEqual() 245 logln(temp); in confirmEqual() 262 logln(temp); in confirmEqual() 282 logln(temp); in confirmStringsEqual() 295 logln(temp); in confirmIdentical() 305 logln(message + " lhs: " + lhs + " rhs: " + rhs); in confirmIdentical() 316 logln(message + *str); in msgstr() 689 logln(" " + *id + " --> " + *result); in testAPI_Two() [all …]
|
D | selfmts.cpp | 26 #define VERBOSE_INT(x) {logln("%s:%d: int %s=%d\n", __FILE__, __LINE__, #x, (x));} 27 #define VERBOSE_USTRING(text) {logln("%s:%d: UnicodeString %s(%d) = ", __FILE__, __LINE__, #text, t… 32 if (exec) logln("TestSuite SelectFormat"); in runIndexedTest() 104 logln("SelectFormat Unit Test : Testing SelectFormat pattern syntax."); in selectFormatUnitTest() 130 logln("SelectFormat Unit Test : Creating format object for Testing applying various patterns"); in selectFormatUnitTest() 140 logln("SelectFormat Unit test: Testing applyPattern() and format() ..."); in selectFormatUnitTest() 168 …logln("SelectFormat Unit test: Testing format() with keyword method and with invalid keywords..."… in selectFormatUnitTest() 210 logln("SelectFormat API test: Testing SelectFormat constructors ..."); in selectFormatAPITest() 222 logln("SelectFormat API test: Testing copy constructor and == operator ..."); in selectFormatAPITest() 231 logln("SelectFormat API test: Testing clone and == operator ..."); in selectFormatAPITest() [all …]
|
D | itrbnfp.cpp | 29 logln(#test "---"); \ 30 logln(); \ 37 if (exec) logln("TestSuite RuleBasedNumberFormatParse"); in runIndexedTest() 56 logln("RBNF Parse test starting"); in TestParse() 122 logln("rule[%d] \"%s\"", i, rule); in TestParse() 137 …logln("perror line: %x offset: %x context: %s|%s", perr.line, perr.offset, perr.preContext, perr.p… in TestParse() 152 logln(us); in testfmt() 154 logln("error: could not format %g, returned status: %d", val, status); in testfmt() 165 logln(us); in testfmt() 167 logln("error: could not format %d, returned status: %d", val, status); in testfmt()
|
D | tmsgfmt.cpp | 128 logln(locale[i].getDisplayName(buffer)); in testBug3() 134 logln("Number format creation failed."); in testBug3() 144 …logln(UnicodeString(" -> ") /* + << dec*/ + toString(result) + UnicodeString("[supposed output for… in testBug3() 147 logln("Number format parse failed."); in testBug3() 166 logln(toAppendTo); in testBug1() 176 logln("The input pattern : " + pattern); in testBug2() 182 logln("The output pattern is : " + fmt->toPattern(result)); in testBug2() 303 logln(((UnicodeString)"MessageFormat for ") + testCases[i] + " creation failed.\n"); in PatternTest() 327 logln("TestMessageFormat::PatternTest failed test #3"); in PatternTest() 332 logln("TestMessageFormat::PatternTest failed #4."); in PatternTest() [all …]
|
D | canittst.cpp | 28 logln(#test "---"); \ 29 logln((UnicodeString)""); \ 88 logln("Testing U+%06X", i); in TestExhaustive() 121 logln("Safe Start: " + ss.toPattern(true)); in TestBasic() 138 logln("testing permutation"); in TestBasic() 145 logln("testing samples"); in TestBasic() 213 logln("Checked: " + message + getReadable(item)); in expectEqual() 214 logln("\t" + getReadable(a)); in expectEqual() 215 logln("\t" + getReadable(b)); in expectEqual() 278 logln(*resArray[i]); in collectionToString() [all …]
|
D | incaltst.cpp | 64 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 69 if (exec) logln("TestSuite IntlCalendarTest"); in runIndexedTest() 129 logln(UnicodeString("Creating calendar of locale ") + locs[j]); in TestTypes() 134 logln(UnicodeString(" type is ") + c->getType()); in TestTypes() 186 logln((UnicodeString)"cal : " + CalendarTest::calToStr(cal)); in quasiGregorianTest() 187 logln((UnicodeString)"grego: " + CalendarTest::calToStr(*grego)); in quasiGregorianTest() 190 logln(UnicodeString("OK: ") + era + ":" + year + "/" + (month+1) + "/" + dayOfMonth + in quasiGregorianTest() 203 logln((UnicodeString)"cal : " + CalendarTest::calToStr(cal)); in quasiGregorianTest() 204 logln((UnicodeString)"grego: " + CalendarTest::calToStr(*grego)); in quasiGregorianTest() 207 logln((UnicodeString)"OK: " + D + " => " + cal.get(UCAL_ERA, status) + ":" + in quasiGregorianTest() [all …]
|
D | dtfmrgts.cpp | 24 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 70 logln((UnicodeString) "today: " + today); in Test4029195() 83 logln("pattern: " + pat); in Test4029195() 87 logln("today: " + fmtd); in Test4029195() 92 logln("today: " + todayS); in Test4029195() 96 logln((UnicodeString)"today date: " + today); in Test4029195() 105 logln("round trip: " + rt); in Test4029195() 133 logln(str); in Test4052408() 198 logln((UnicodeString)"" + i + (UnicodeString)": " + fieldNames[i] + in Test4052408() 204 logln(" ok"); in Test4052408() [all …]
|
D | aliastst.cpp | 62 logln(UnicodeString(newLoc.getName())+" is not available. Skipping!"); in TestCalendar() 65 logln("\nold locale:%s new locale:%s",oldLoc.getName(),newLoc.getName()); in TestCalendar() 81 logln("Calendar(getLocale) old:"+UnicodeString(l1)+" new:"+UnicodeString(l2)); in TestCalendar() 94 logln(UnicodeString(newLoc.getName())+" is not available. Skipping!"); in TestDateFormat() 97 logln("\nold locale:%s new locale:%s",oldLoc.getName(),newLoc.getName()); in TestDateFormat() 114 logln("DateFormat(getLocale) old:%s new:%s",l1,l2); in TestDateFormat() 128 logln(UnicodeString(newLoc.getName())+" is not available. Skipping!"); in TestCollation() 131 logln("\nold locale:%s new locale:%s",oldLoc.getName(),newLoc.getName()); in TestCollation() 148 logln("Collator(getLocale) old:%s new:%s", l1.getName(), l2.getName()); in TestCollation() 159 logln(UnicodeString(newLoc.getName())+" is not available. Skipping!"); in TestULocale() [all …]
|
D | numrgts.cpp | 103 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 245 logln("NumberFormat.equals passed"); in Test4075713() 269 logln("Test for bug 4074620 passed."); in Test4074620() 290 logln(UnicodeString("d = ") + d); in Test4088161() 291 logln("maxFractionDigits = " + df->getMaximumFractionDigits()); in Test4088161() 293 logln(" format(d) = '" + df->format(d, sBuf1, fp1) + "'"); in Test4088161() 297 logln("maxFractionDigits = " + df->getMaximumFractionDigits()); in Test4088161() 325 logln(UnicodeString("format(") + n + ") = " + in Test4087245() 328 logln(UnicodeString("format(") + n + ") = " + in Test4087245() 374 logln(df->format((int32_t)123, sBuf, fp)); in Test4088503() [all …]
|
D | tsnmfmt.cpp | 40 if (exec) logln((UnicodeString)"TestSuite NumberFormat"); in runIndexedTest() 45 logln(name); in runIndexedTest() 58 logln(name); in runIndexedTest() 65 logln(name); in runIndexedTest() 81 logln((UnicodeString)name + " (" + localeName + ")"); in testLocale() 87 logln((UnicodeString)name + " (" + localeName + ")"); in testLocale() 93 logln((UnicodeString)name + " (" + localeName + ")"); in testLocale() 100 logln((UnicodeString)name + " (" + localeName + ")"); in testLocale() 180 logln((UnicodeString)" Pattern " + s->toPattern(str)); in testFormat() 355 logln((UnicodeString)"" + k + ": " + number[k].getDouble() + " F> " + in tryIt() [all …]
|
D | tsdate.cpp | 30 if (exec) logln("TestSuite DateFormat"); in runIndexedTest() 34 logln(name); in runIndexedTest() 43 logln(name); in runIndexedTest() 50 logln(name); in runIndexedTest() 57 logln(name); in runIndexedTest() 144 logln(fTestName + " Pattern " + s->toPattern(str)); in describeTest() 212 logln((UnicodeString)"" + k + ": " + date[k] + " F> " + in tryDate() 254 logln((UnicodeString)"" + count + " available locales"); in testAvailableLocales() 264 logln(all); in testAvailableLocales() 276 logln("quick test: testing just 3 locales!"); in monsterTest() [all …]
|
D | rndmcoll.cpp | 82 if (exec) logln("TestSuite RandomCollatorTest: "); in runIndexedTest() 152 logln("\n-----------------------------------%d\n",i); in Test() 153 logln(UnicodeString(rule, strlen(rule))); in Test() 157 logln( "===========================================\n"); in Test() 159 logln("\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"); in Test()
|
D | calregts.cpp | 31 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)"… 142 logln(UnicodeString("") + d); in test4100311() 164 logln(UnicodeString("HOUR=") + cal->get(UCAL_HOUR, status)); //prints 0 in test4074758() 166 logln(UnicodeString("HOUR_OF_DAY=") + cal->get(UCAL_HOUR_OF_DAY, status)); in test4074758() 200 logln(UnicodeString(string, "")); in printdate() 206 logln(UnicodeString("/") + cal->get(UCAL_YEAR, status)) ; in printdate() 247 logln(zone->getID(temp) + " " + in test4031502() 306 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996() 307 logln(UnicodeString("DAY_OF_MONTH: ") + in test4040996() 309 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996() [all …]
|
D | dadrcal.cpp | 55 logln("---"); in runIndexedTest() 56 logln(""); in runIndexedTest() 198 logln(caseString+": "+caseContentsString); in testOps() 231 logln("PASS: "+caseString+" SET SOURCE calendar match."); in testOps() 249 logln(operation + " of "+ paramsSet.get((UCalendarDateFields)q) in testOps() 267 logln(caseString + " SUCCESS: got=expected="+toDate); in testOps() 268 logln("PASS: "+caseString+" matched!"); in testOps() 279 logln("PASS: "+caseString+" matched!"); in testOps() 315 logln("PASS: "+thisString+" SOURCE calendar match."); in testConvert() 337 logln("PASS: "+thisString+" SET SOURCE calendar match."); in testConvert() [all …]
|