ICU-9836 C/Java mismatch parsing years with pattern "yyyy" :: fix new test under windows

X-SVN-Rev: 33015
This commit is contained in:
Scott Russell 2013-01-05 20:22:19 +00:00
parent ce9b84ec38
commit c17e7e0af6

View File

@ -899,12 +899,9 @@ static void TestCalendarDateParse() {
UCalendar* tempCal = 0;
UCalendar* calendar = 0;
U_STRING_DECL(pattern, "yyyy", 4);
U_STRING_INIT(pattern, "yyyy", 4);
U_STRING_DECL(pattern2, "yy", 2);
U_STRING_INIT(pattern2, "yy", 2);
U_STRING_DECL(text, "75", 2);
U_STRING_INIT(text, "75", 2);
static const UChar pattern[5] = "yyyy";
static const UChar pattern2[3] = "yy";
static const UChar text[3] = "75";
simpleDateFormat = udat_open(UDAT_FULL, UDAT_FULL, "en-GB", 0, 0, 0, 0, &ec);
udat_applyPattern(simpleDateFormat, 0, pattern, u_strlen(pattern));