/********************************************************************
* COPYRIGHT:
- * Copyright (c) 2003-2008, International Business Machines Corporation
+ * Copyright (c) 2003-2013, International Business Machines Corporation
* and others. All Rights Reserved.
********************************************************************
* Calendar Case Test is a type of CalendarTest which compares the
UErrorCode status = U_ZERO_ERROR;
Calendar *c = Calendar::createInstance("ar@calendar=islamic-civil", status);
+ if (failure(status, "Calendar::createInstance", TRUE)) return;
c->setLenient(TRUE);
doTestCases(tests, c);
static const UChar expectedUChars[] = {
- 0x0627, 0x0644, 0x062e, 0x0645, 0x064a, 0x0633, 0x060c, 0x0020, 0x0662, 0x0662,
- 0x0020, 0x0634, 0x0648, 0x0627, 0x0644, 0x060c, 0x0020, 0x0661, 0x0663, 0x0668,
- 0x0669, 0
- };
+ 0x0627, 0x0644, 0x062e, 0x0645, 0x064a, 0x0633, 0x060c, 0x0020, 0x0662, 0x0662, 0x0020,
+ 0x0634, 0x0648, 0x0627, 0x0644, 0x060c, 0x0020, 0x0661, 0x0663, 0x0668, 0x0669, 0x0020, 0x0647, 0x0640, 0
+ };
UnicodeString result;
DateFormat *fmt = DateFormat::createDateInstance(DateFormat::kFull, Locale("ar_JO@calendar=islamic-civil"));
if (fmt == NULL) {
UErrorCode status = U_ZERO_ERROR;
Calendar *c = Calendar::createInstance("he_HE@calendar=hebrew", status);
+ if (failure(status, "Calendar::createInstance", TRUE)) return;
c->setLenient(TRUE);
doTestCases(tests, c);
UErrorCode status = U_ZERO_ERROR;
Calendar *c = Calendar::createInstance("hi_IN@calendar=indian", status);
+ if (failure(status, "Calendar::createInstance", TRUE)) return;
c->setLenient(TRUE);
doTestCases(tests, c);
UErrorCode status = U_ZERO_ERROR;
Calendar *c = Calendar::createInstance("cop_EG@calendar=coptic", status);
+ if (failure(status, "Calendar::createInstance", TRUE)) return;
+
c->setLenient(TRUE);
doTestCases(tests, c);
UErrorCode status = U_ZERO_ERROR;
Calendar *c = Calendar::createInstance("am_ET@calendar=ethiopic", status);
+ if (failure(status, "Calendar::createInstance", TRUE)) return;
c->setLenient(TRUE);
doTestCases(tests, c);
}
}
c = Calendar::createInstance("am_ET@calendar=ethiopic-amete-alem", status);
+ if (failure(status, "Calendar::createInstance", TRUE)) return;
c->setLenient(TRUE);
doTestCases(tests, c);