Lines Matching full:status

33     UErrorCode status = U_ZERO_ERROR;  in DataDrivenCalendarTest()  local
34 driver = TestDataModule::getTestDataModule("calendar", *this, status); in DataDrivenCalendarTest()
48 UErrorCode status= U_ZERO_ERROR; in runIndexedTest() local
49 TestData *testData = driver->createTestData(index, status); in runIndexedTest()
50 if (U_SUCCESS(status)) { in runIndexedTest()
52 if (testData->getInfo(info, status)) { in runIndexedTest()
53 log(info->getString("Description", status)); in runIndexedTest()
75 UErrorCode status = U_ZERO_ERROR; in testOps() local
91 status); in testOps()
92 if (U_FAILURE(status)) { in testOps()
94 u_errorName(status)); in testOps()
99 while (testData->nextCase(currentCase, status)) { in testOps()
113 UnicodeString testSetting = currentCase->getString(param, status); in testOps()
114 if (U_FAILURE(status)) { in testOps()
120 fromCalendar = Calendar::createInstance(toCalLoc, status); in testOps()
121 if (U_FAILURE(status)) { in testOps()
130 UnicodeString from = testSetting=currentCase->getString(param, status); in testOps()
131 if (U_FAILURE(status)) { in testOps()
141 } else if(fromSet.parseFrom(testSetting, status)<0 || U_FAILURE(status)){ in testOps()
150 status); in testOps()
151 if (U_FAILURE(status)) { in testOps()
156 if (U_FAILURE(status)) { in testOps()
166 =currentCase->getString(param, status); in testOps()
167 if (U_FAILURE(status)) { in testOps()
172 paramsSet.parseFrom(testSetting, status); // parse with inheritance. in testOps()
173 if (U_FAILURE(status)) { in testOps()
182 UnicodeString to = testSetting=currentCase->getString(param, status); in testOps()
183 if (U_FAILURE(status)) { in testOps()
192 } else if(toSet.parseFrom(testSetting, &fromSet, status)<0 || U_FAILURE(status)){ in testOps()
207 fromCalendar->setTime(fromDate, status); in testOps()
208 if (U_FAILURE(status)) { in testOps()
210 + u_errorName(status)); in testOps()
214 fromSet.setOnCalendar(fromCalendar, status); in testOps()
215 if (U_FAILURE(status)) { in testOps()
217 + u_errorName(status)); in testOps()
224 if (!fromSet.matches(fromCalendar, diffSet, status)) { in testOps()
225 UnicodeString diffs = diffSet.diffFrom(fromSet, status); in testOps()
228 +"', status: "+ u_errorName(status)); in testOps()
229 } else if (U_FAILURE(status)) { in testOps()
231 +u_errorName(status)); in testOps()
244 paramsSet.get((UCalendarDateFields)q), status); in testOps()
247 paramsSet.get((UCalendarDateFields)q), status); in testOps()
252 +" -> "+u_errorName(status)); in testOps()
255 if (U_FAILURE(status)) { in testOps()
257 +u_errorName(status)); in testOps()
265 if(!(toCalendar->getTime(status)==toDate) || U_FAILURE(status)){ in testOps()
267 +u_errorName(status)); in testOps()
272 } else if (!toSet.matches(toCalendar, diffSet, status)) { in testOps()
273 UnicodeString diffs = diffSet.diffFrom(toSet, status); in testOps()
275 +" Differences: "+ diffs +"', status: " in testOps()
276 + u_errorName(status)); in testOps()
277 }else if (U_FAILURE(status)) { in testOps()
279 +u_errorName(status)); in testOps()
292 UErrorCode status = U_ZERO_ERROR; in testConvert() local
298 fromSet.setOnCalendar(fromCalendar, status); in testConvert()
299 if (U_FAILURE(status)) { in testConvert()
300 errln("FAIL: Failed to set on Source calendar: %s", u_errorName(status)); in testConvert()
308 if (!fromSet.matches(fromCalendar, diffSet, status)) { in testConvert()
309 UnicodeString diffs = diffSet.diffFrom(fromSet, status); in testConvert()
312 +"', status: "+ u_errorName(status)); in testConvert()
313 } else if (U_FAILURE(status)) { in testConvert()
315 +u_errorName(status)); in testConvert()
322 UDate fromTime = fromCalendar->getTime(status); in testConvert()
323 if (U_FAILURE(status)) { in testConvert()
324 errln("FAIL: Failed to get Source time: %s", u_errorName(status)); in testConvert()
330 if (!fromSet.matches(fromCalendar, diffSet, status)) { in testConvert()
331 UnicodeString diffs = diffSet.diffFrom(fromSet, status); in testConvert()
334 +"', status: "+ u_errorName(status)); in testConvert()
335 } else if (U_FAILURE(status)) { in testConvert()
337 +u_errorName(status)); in testConvert()
343 toCalendar->setTime(fromTime, status); in testConvert()
344 if (U_FAILURE(status)) { in testConvert()
345 errln("FAIL: Failed to set Target time: %s", u_errorName(status)); in testConvert()
350 if (!toSet.matches(toCalendar, diffSet, status)) { in testConvert()
351 UnicodeString diffs = diffSet.diffFrom(toSet, status); in testConvert()
353 +"', status: "+ u_errorName(status)); in testConvert()
354 SimpleDateFormat fmt(UnicodeString("EEE MMM dd yyyy G"), status); in testConvert()
359 } else if (U_FAILURE(status)) { in testConvert()
360 errln("FAIL: "+thisString+" Failed to match: "+u_errorName(status)); in testConvert()
368 UErrorCode status = U_ZERO_ERROR; in testConvert() local
374 UnicodeString testSetting = settings->getString("ToCalendar", status); in testConvert()
375 if (U_SUCCESS(status)) { in testConvert()
377 toCalendar = Calendar::createInstance(toCalLoc, status); in testConvert()
378 if (U_FAILURE(status)) { in testConvert()
386 status); in testConvert()
387 if (U_FAILURE(status)) { in testConvert()
388 errcheckln(status, "FAIL: Couldn't create SimpleDateFormat: %s", in testConvert()
389 u_errorName(status)); in testConvert()
394 while (testData->nextCase(currentCase, status)) { in testConvert()
397 UnicodeString locale = currentCase->getString("locale", status); in testConvert()
398 if (U_SUCCESS(status)) { in testConvert()
400 fromCalendar = Calendar::createInstance(fromCalLoc, status); in testConvert()
401 if (U_FAILURE(status)) { in testConvert()
413 UnicodeString from = currentCase->getString("from", status); in testConvert()
414 if (U_FAILURE(status)) { in testConvert()
418 fromSet.parseFrom(from, status); in testConvert()
419 if (U_FAILURE(status)) { in testConvert()
423 UnicodeString to = currentCase->getString("to", status); in testConvert()
424 if (U_FAILURE(status)) { in testConvert()
428 toSet.parseFrom(to, &fromSet, status); in testConvert()
429 if (U_FAILURE(status)) { in testConvert()
457 UErrorCode status = U_ZERO_ERROR; in processTest() local
460 while (testData->nextSettings(settings, status)) { in processTest()
461 status = U_ZERO_ERROR; in processTest()
463 testSetting = settings->getString("Type", status); in processTest()
464 if (U_SUCCESS(status)) { in processTest()