Home | History | Annotate | Download | only in intltest

Lines Matching defs:in

388     // hour is the expected hour of day, in units of seconds
443 * This MUST be kept in
452 * A list of the names of all the fields in DateFormat.
453 * This MUST be kept in sync with DateFormat.
548 // Fields are given in order of DateFormat field number
571 "1997", "GMT-7", "-07", "-07", "1997", "PM", "in the afternoon",
581 "1997", "GMT-07:00", "-0700", "-0700", "1997", "PM", "in the afternoon",
672 * correctly. In some instances, this means not being parsed at all, and
735 * Verify the behavior of patterns in which digits for different fields run together
767 * Verify the behavior of patterns in which digits for different fields run together
863 * Test the handling of 'D' in patterns.
949 * Test the handling of single quotes in patterns.
1090 * the input strings in each row.
1226 logln((UnicodeString)"Formatted in GMT to: " + temp);
1320 * Test the formatting of dates in different locales.
1359 // in the Arabic is changed back to ":" in CLDR 28.
1966 // This only happens if expected is in wrong format --
2148 // Note: We no longer parse strings in different styles.
2630 // This test data was ported from ICU4J. Don't know why the 6th column in there because it's not being
3381 { "ti", "Asia/Calcutta", "2004-07-15T00:00:00Z", "v", "IN", "Alna/Calcutta" },
3382 { "ti", "Asia/Calcutta", "2004-07-15T00:00:00Z", "vvvv", "IN", "Asia/Calcutta" },
3580 logln("Nothing in this test. When we get more data from CLDR, put in some tests of -2, +2, etc. ");
3737 // pattern, input, expected output (in quotes)
3748 // leniency (no separator char in localized GMT format), but the new
3761 // with no delimitters in offset format (Chinese locale)
3910 UnicodeString in = data[i];
3913 UDate dt1 = fmt1->parse(in, status);
3924 dataerrln((UnicodeString)"FAIL: " + in + " -> " + out + " expected -> " + expected);
4059 { 78, 29, 4, 0, 2 }, // (in chinese era 78) gregorian 2012-4-22
4060 { 78, 29, 4, 1, 2 }, // (in chinese era 78) gregorian 2012-5-22
4061 { 78, 29, 5, 0, 2 }, // (in chinese era 78) gregorian 2012-6-20
4456 if (formattedString.indexOf("n ") >= 0) { // will add "." after the end of text ending in 'n', like Jan.
5075 assertEquals("hh:mm:ss BBB | 06:00:00", "06:00:00 in the morning", sdf.format(k060000, out.remove()));
5077 assertEquals("hh:mm:ss BBB | 18:00:00", "06:00:00 in the evening", sdf.format(k180000, out.remove()));
5103 assertEquals("hh:mm:ss BBBB | 06:00:00", "06:00:00 in the morning", sdf.format(k060000, out.remove()));
5105 assertEquals("hh:mm:ss BBBB | 18:00:00", "06:00:00 in the evening", sdf.format(k180000, out.remove()));
5131 assertEquals("hh:mm:ss BBBBB | 06:00:00", "06:00:00 in the morning", sdf.format(k060000, out.remove()));
5133 assertEquals("hh:mm:ss BBBBB | 18:00:00", "06:00:00 in the evening", sdf.format(k180000, out.remove()));
5235 // different string for 1 in the morning.
5290 assertEquals("hh:mm 'ss' BBBB | 06:00:30", "06:00 ss in the morning",
5309 assertEquals("hh 'mm ss' BBBB | 06:30:00", "06 mm ss in the morning",
5387 assertEquals("yyyy-MM-dd B | 2015-11-13 in the afternoon",
5388 k150000, sdf.parse(UnicodeString("2015-11-13 in the afternoon"), errorCode));
5389 assertEquals("yyyy-MM-dd B | 2015-11-13 in the evening",
5390 k193000, sdf.parse(UnicodeString("2015-11-13 in the evening"), errorCode));
5402 assertEquals("yyyy-MM-dd hh:mm B | 2015-11-13 01:00 in the afternoon",
5403 k130000, sdf.parse(UnicodeString("2015-11-13 01:00 in the afternoon"), errorCode));
5404 assertEquals("yyyy-MM-dd hh:mm B | 2015-11-13 09:00 in the morning",
5405 k090000, sdf.parse(UnicodeString("2015-11-13 09:00 in the morning"), errorCode));
5410 // to be in 24-hour format).
5418 assertEquals("yyyy-MM-dd HH:mm B | 2015-11-13 13:37 in the afternoon",
5419 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 in the afternoon"), errorCode));
5420 assertEquals("yyyy-MM-dd HH:mm B | 2015-11-13 13:37 in the morning",
5421 k133700, sdf.parse(UnicodeString("2015-11-13 13:37 in the morning"), errorCode));
5441 assertEquals("yyyy-MM-dd HH:mm B | 2015-11-13 00:37 in the afternoon",
5442 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 in the afternoon"), errorCode));
5443 assertEquals("yyyy-MM-dd HH:mm B | 2015-11-13 00:37 in the morning",
5444 k003700, sdf.parse(UnicodeString("2015-11-13 00:37 in the morning"), errorCode));
5449 // day period into account in parsing.
5457 assertEquals("yyyy-MM-dd HH:mm B | 2015-11-13 01:00 in the afternoon",
5458 k130000, sdf.parse(UnicodeString("2015-11-13 01:00 in the afternoon"), errorCode));
5459 assertEquals("yyyy-MM-dd HH:mm B | 2015-11-13 09:00 in the morning",
5460 k090000, sdf.parse(UnicodeString("2015-11-13 09:00 in the morning"), errorCode));
5468 // AFTERNOON1 is [12, 18), but "7 in the afternoon" parses to 19:00.
5469 assertEquals("yyyy-MM-dd hh:mm B | 2015-11-13 07:00 in the afternoon",
5470 k190000, sdf.parse(UnicodeString("2015-11-13 07:00 in the afternoon"), errorCode));