Lines Matching refs:parse
412 // Test simple parse/format with adopt
433 UDate otherDate = fmt->parse(expected, status);
437 errln("Parse incorrect of " + escape(expected) + " - wanted " + aDate + " but got " + otherDate + ", " + escape(str3));
499 // Test simple parse/format with adopt
518 UDate otherDate = fmt->parse(expected, status);
522 fmt->parse(expected, *cal2, pp);
524 errln("Parse incorrect of " + expected + " - wanted " + aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) );
532 // Test parse with incomplete information
563 UDate otherDate = fmt->parse(expected, status);
567 fmt->parse(expected, *cal2, pp);
569 errln("Parse incorrect of " + expected + " - wanted " + aDate + " but got " + " = " +
642 // Test simple parse/format with adopt
645 // Test parse with missing era (should default to current era, heisei)
646 // Test parse with incomplete information
647 logln("Testing parse w/ missing era...");
657 aDate = fmt->parse(samplestr, s2);
659 fmt->parse(samplestr, *cal2, pp);
661 logln("*cal2 after 119 parse:");
672 errln(UnicodeString("parse "+samplestr+" of 'y.m.d' as Japanese Calendar, expected year ") + expectYear +
682 // Test simple parse/format with adopt
685 // Test parse with missing era (should default to current era, heisei)
686 // Test parse with incomplete information
687 logln("Testing parse w/ just year...");
697 aDate = fmt->parse(samplestr, s2);
699 fmt->parse(samplestr, *cal2, pp);
701 logln("*cal2 after 1 parse:");
712 errln(UnicodeString("parse "+samplestr+" of 'y' as Japanese Calendar, expected year ") + expectYear +
759 UDate aDate = fmt2->parse(gregorianDate, status);
770 UDate otherDate = fmt->parse(expected, status);
774 errln("Parse incorrect of " + escape(expected) + " - wanted " + aDate + " but got " + otherDate + ", " + escape(str3));
786 otherDate = fmt->parse(expected, status);
788 errln("Parse incorrect of " + escape(expected) + " - wanted " + aDate + " but got " + otherDate);
806 logln("Try format/parse of " + (UnicodeString)loc.getName());
815 d = fmt2->parse(expect,status);
819 errln(UnicodeString("Failed to parse " ) + escape(expect) + ", " + loc.getName() + " expect " + (double)expectDate + " got " + (double)d + " " + escape(tmp));