Lines Matching refs:parse
411 // Test simple parse/format with adopt
432 UDate otherDate = fmt->parse(expected, status);
436 errln("Parse incorrect of " + escape(expected) + " - wanted " + aDate + " but got " + otherDate + ", " + escape(str3));
498 // Test simple parse/format with adopt
517 UDate otherDate = fmt->parse(expected, status);
521 fmt->parse(expected, *cal2, pp);
523 errln("Parse incorrect of " + expected + " - wanted " + aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) );
531 // Test parse with incomplete information
548 UDate otherDate = fmt->parse(expected, status);
552 fmt->parse(expected, *cal2, pp);
554 errln("Parse incorrect of " + expected + " - wanted " + aDate + " but got " + " = " +
624 // Test simple parse/format with adopt
627 // Test parse with missing era (should default to current era, heisei)
628 // Test parse with incomplete information
629 logln("Testing parse w/ missing era...");
639 aDate = fmt->parse(samplestr, s2);
641 fmt->parse(samplestr, *cal2, pp);
643 logln("*cal2 after 119 parse:");
654 errln(UnicodeString("parse "+samplestr+" of 'y.m.d' as Japanese Calendar, expected year ") + expectYear +
664 // Test simple parse/format with adopt
667 // Test parse with missing era (should default to current era, heisei)
668 // Test parse with incomplete information
669 logln("Testing parse w/ just year...");
679 aDate = fmt->parse(samplestr, s2);
681 fmt->parse(samplestr, *cal2, pp);
683 logln("*cal2 after 1 parse:");
694 errln(UnicodeString("parse "+samplestr+" of 'y' as Japanese Calendar, expected year ") + expectYear +
839 UDate aDate = fmt2->parse(gregorianDate, status);
850 UDate otherDate = fmt->parse(expected, status);
854 errln("Parse incorrect of " + escape(expected) + " - wanted " + aDate + " but got " + otherDate + ", " + escape(str3));
866 otherDate = fmt->parse(expected, status);
868 errln("Parse incorrect of " + escape(expected) + " - wanted " + aDate + " but got " + otherDate);
886 logln("Try format/parse of " + (UnicodeString)loc.getName());
895 d = fmt2->parse(expect,status);
899 errln(UnicodeString("Failed to parse " ) + escape(expect) + ", " + loc.getName() + " expect " + (double)expectDate + " got " + (double)d + " " + escape(tmp));