Lines Matching refs:parse
414 // Test simple parse/format with adopt
435 UDate otherDate = fmt->parse(expected, status);
439 errln("Parse incorrect of " + escape(expected) + " - wanted " + aDate + " but got " + otherDate + ", " + escape(str3));
501 // Test simple parse/format with adopt
520 UDate otherDate = fmt->parse(expected, status);
524 fmt->parse(expected, *cal2, pp);
526 errln("Parse incorrect of " + expected + " - wanted " + aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) );
534 // Test parse with incomplete information
551 UDate otherDate = fmt->parse(expected, status);
555 fmt->parse(expected, *cal2, pp);
557 errln("Parse incorrect of " + expected + " - wanted " + aDate + " but got " + " = " +
627 // Test simple parse/format with adopt
630 // Test parse with missing era (should default to current era, heisei)
631 // Test parse with incomplete information
632 logln("Testing parse w/ missing era...");
642 aDate = fmt->parse(samplestr, s2);
644 fmt->parse(samplestr, *cal2, pp);
646 logln("*cal2 after 119 parse:");
657 errln(UnicodeString("parse "+samplestr+" of 'y.m.d' as Japanese Calendar, expected year ") + expectYear +
667 // Test simple parse/format with adopt
670 // Test parse with missing era (should default to current era, heisei)
671 // Test parse with incomplete information
672 logln("Testing parse w/ just year...");
682 aDate = fmt->parse(samplestr, s2);
684 fmt->parse(samplestr, *cal2, pp);
686 logln("*cal2 after 1 parse:");
697 errln(UnicodeString("parse "+samplestr+" of 'y' as Japanese Calendar, expected year ") + expectYear +
744 UDate aDate = fmt2->parse(gregorianDate, status);
755 UDate otherDate = fmt->parse(expected, status);
759 errln("Parse incorrect of " + escape(expected) + " - wanted " + aDate + " but got " + otherDate + ", " + escape(str3));
771 otherDate = fmt->parse(expected, status);
773 errln("Parse incorrect of " + escape(expected) + " - wanted " + aDate + " but got " + otherDate);
791 logln("Try format/parse of " + (UnicodeString)loc.getName());
800 d = fmt2->parse(expect,status);
804 errln(UnicodeString("Failed to parse " ) + escape(expect) + ", " + loc.getName() + " expect " + (double)expectDate + " got " + (double)d + " " + escape(tmp));