• Home
  • Raw
  • Download

Lines Matching refs:DATA

720     const ParseTestData DATA[] = {  in TestParse()  local
811 for (int32_t i = 0; DATA[i].text; i++) { in TestParse()
813 …LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale(DATA[i].locale), status)); in TestParse()
819 ParsePosition pos(DATA[i].inPos); in TestParse()
820 TimeZone* tz = tzfmt->parse(DATA[i].style, DATA[i].text, pos, DATA[i].parseOptions, &ttype); in TestParse()
826 if (outID != UnicodeString(DATA[i].expected)) { in TestParse()
827 … errMsg = (UnicodeString)"Time zone ID: " + outID + " - expected: " + DATA[i].expected; in TestParse()
828 } else if (pos.getIndex() != DATA[i].outPos) { in TestParse()
829 … errMsg = (UnicodeString)"Parsed pos: " + pos.getIndex() + " - expected: " + DATA[i].outPos; in TestParse()
830 } else if (ttype != DATA[i].timeType) { in TestParse()
831 errMsg = (UnicodeString)"Time type: " + ttype + " - expected: " + DATA[i].timeType; in TestParse()
835 if (DATA[i].expected) { in TestParse()
836 errMsg = (UnicodeString)"Parse failure - expected: " + DATA[i].expected; in TestParse()
840 …(UnicodeString)"Fail: " + errMsg + " [text=" + DATA[i].text + ", pos=" + DATA[i].inPos + ", style=… in TestParse()
1025 const FormatTestData DATA[] = { in TestFormat() local
1095 for (int32_t i = 0; DATA[i].locale; i++) { in TestFormat()
1097 …LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale(DATA[i].locale), status)); in TestFormat()
1103 LocalPointer<TimeZone> tz(TimeZone::createTimeZone(DATA[i].tzid)); in TestFormat()
1107 tzfmt->format(DATA[i].style, *(tz.getAlias()), DATA[i].date, out, &timeType); in TestFormat()
1108 UnicodeString expected(DATA[i].expected, -1, US_INV); in TestFormat()
1111 …assertEquals(UnicodeString("Format result for ") + DATA[i].tzid + " (Test Case " + i + ")", expect… in TestFormat()
1112 if (DATA[i].timeType != timeType) { in TestFormat()
1114 + timeType + ", expected=" + DATA[i].timeType); in TestFormat()
1124 const FormatTestData DATA[] = { in TestFormatTZDBNames() local
1185 for (int32_t i = 0; DATA[i].locale; i++) { in TestFormatTZDBNames()
1187 Locale loc(DATA[i].locale); in TestFormatTZDBNames()
1200 LocalPointer<TimeZone> tz(TimeZone::createTimeZone(DATA[i].tzid)); in TestFormatTZDBNames()
1204 tzfmt->format(DATA[i].style, *(tz.getAlias()), DATA[i].date, out, &timeType); in TestFormatTZDBNames()
1205 UnicodeString expected(DATA[i].expected, -1, US_INV); in TestFormatTZDBNames()
1208 …assertEquals(UnicodeString("Format result for ") + DATA[i].tzid + " (Test Case " + i + ")", expect… in TestFormatTZDBNames()
1209 if (DATA[i].timeType != timeType) { in TestFormatTZDBNames()
1211 + timeType + ", expected=" + DATA[i].timeType); in TestFormatTZDBNames()