Lines Matching refs:status

58 #define TEST_CHECK_STATUS(status) \
59 if (U_FAILURE(status)) {\
60 errln("UVector32Test failure at line %d. status=%s\n", __LINE__, u_errorName(status));\
76 UErrorCode status = U_ZERO_ERROR;
80 a = new UVector32(status);
81 TEST_CHECK_STATUS(status);
84 status = U_ZERO_ERROR;
85 a = new UVector32(2000, status);
86 TEST_CHECK_STATUS(status);
92 status = U_ZERO_ERROR;
93 a = new UVector32(status);
94 a->addElement(10, status);
95 a->addElement(20, status);
96 a->addElement(30, status);
97 b = new UVector32(status);
98 b->assign(*a, status);
101 TEST_CHECK_STATUS(status);
108 status = U_ZERO_ERROR;
109 a = new UVector32(status);
110 a->addElement(10, status);
111 a->addElement(20, status);
112 a->addElement(30, status);
113 b = new UVector32(status);
117 b->assign(*a, status);
121 b->addElement(666, status);
125 TEST_CHECK_STATUS(status);
136 status = U_ZERO_ERROR;
137 a = new UVector32(status);
138 a->addElement(10, status);
139 a->addElement(20, status);
140 a->addElement(30, status);
145 TEST_CHECK_STATUS(status);
151 status = U_ZERO_ERROR;
152 a = new UVector32(status);
153 a->addElement(10, status);
154 a->addElement(20, status);
155 a->addElement(30, status);
156 a->insertElementAt(666, 1, status);
162 TEST_CHECK_STATUS(status);
172 status = U_ZERO_ERROR;
173 a = new UVector32(status);
174 a->addElement(10, status);
175 a->addElement(20, status);
176 a->addElement(30, status);
178 TEST_CHECK_STATUS(status);
185 status = U_ZERO_ERROR;
186 a = new UVector32(status);
187 a->addElement(10, status);
188 a->addElement(20, status);
189 a->addElement(30, status);
194 TEST_CHECK_STATUS(status);
201 status = U_ZERO_ERROR;
202 a = new UVector32(status);
203 a->addElement(10, status);
204 a->addElement(20, status);
205 a->addElement(30, status);
210 TEST_CHECK_STATUS(status);
217 status = U_ZERO_ERROR;
218 a = new UVector32(status);
219 a->addElement(10, status);
220 a->addElement(20, status);
221 a->addElement(30, status);
222 b = new UVector32(status);
224 b->addElement(2, status);
229 b->addElement(30, status);
230 b->addElement(20, status);
233 b->addElement(2, status);
236 TEST_CHECK_STATUS(status);
243 status = U_ZERO_ERROR;
244 a = new UVector32(status);
245 a->addElement(10, status);
246 a->addElement(20, status);
247 a->addElement(30, status);
248 b = new UVector32(status);
251 b->addElement(20, status);
256 b->addElement(10, status);
260 TEST_CHECK_STATUS(status);
267 status = U_ZERO_ERROR;
268 a = new UVector32(status);
269 a->addElement(10, status);
270 a->addElement(20, status);
271 a->addElement(30, status);
272 b = new UVector32(status);
273 b->addElement(10, status);
274 b->addElement(20, status);
275 b->addElement(30, status);
276 b->addElement(15, status);
287 TEST_CHECK_STATUS(status);
306 status = U_ZERO_ERROR;
307 a = new UVector32(status);
309 a->addElement(10, status);
311 a->addElement(20, status);
316 TEST_CHECK_STATUS(status);
323 status = U_ZERO_ERROR;
324 a = new UVector32(status);
326 a->addElement(10, status);
327 TEST_ASSERT(a->ensureCapacity(5000, status)== TRUE);
328 TEST_ASSERT(a->expandCapacity(20000, status) == TRUE);
329 TEST_CHECK_STATUS(status);
335 status = U_ZERO_ERROR;
336 a = new UVector32(status);
337 a->addElement(10, status);
338 a->addElement(20, status);
339 a->addElement(30, status);
358 TEST_CHECK_STATUS(status);
364 status = U_ZERO_ERROR;
365 a = new UVector32(status);
366 a->addElement(10, status);
367 a->addElement(20, status);
368 a->addElement(30, status);
369 b = new UVector32(status);
371 b->addElement(5, status);
373 b->addElement(30, status);
376 TEST_CHECK_STATUS(status);
383 status = U_ZERO_ERROR;
384 a = new UVector32(status);
385 a->sortedInsert(30, status);
386 a->sortedInsert(20, status);
387 a->sortedInsert(10, status);
392 TEST_CHECK_STATUS(status);
398 status = U_ZERO_ERROR;
399 a = new UVector32(status);
400 a->addElement(10, status);
401 a->addElement(20, status);
412 TEST_CHECK_STATUS(status);
419 status = U_ZERO_ERROR;
420 a = new UVector32(status);
422 a->addElement(10, status);
424 a->addElement(20, status);
429 TEST_CHECK_STATUS(status);
436 status = U_ZERO_ERROR;
437 a = new UVector32(status);
438 a->addElement(10, status);
440 a->addElement(20, status);
442 a->addElement(30, status);
444 TEST_CHECK_STATUS(status);
451 status = U_ZERO_ERROR;
452 a = new UVector32(status);
453 a->addElement(10, status);
454 a->addElement(20, status);
455 a->addElement(30, status);
461 TEST_CHECK_STATUS(status);
467 status = U_ZERO_ERROR;
468 a = new UVector32(status);
469 TEST_ASSERT(a->push(10, status) == 10);
470 TEST_ASSERT(a->push(20, status) == 20);
471 TEST_ASSERT(a->push(30, status) == 30);
477 TEST_CHECK_STATUS(status);
484 status = U_ZERO_ERROR;
485 a = new UVector32(status);
486 a->ensureCapacity(1000, status);
490 TEST_CHECK_STATUS(status);