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

X-SVN-Rev: 33016
This commit is contained in:
Scott Russell 2013-01-05 23:43:54 +00:00
parent c17e7e0af6
commit 6a13a557d5

View file

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