Home | History | Annotate | Download | only in intltest

Lines Matching refs:status

60 #define TEST_CHECK_STATUS(status) \
61 if (U_FAILURE(status)) {\
62 errln("UVector32Test failure at line %d. status=%s\n", __LINE__, u_errorName(status));\
78 UErrorCode status = U_ZERO_ERROR;
82 a = new UVector32(status);
83 TEST_CHECK_STATUS(status);
86 status = U_ZERO_ERROR;
87 a = new UVector32(2000, status);
88 TEST_CHECK_STATUS(status);
94 status = U_ZERO_ERROR;
95 a = new UVector32(status);
96 a->addElement(10, status);
97 a->addElement(20, status);
98 a->addElement(30, status);
99 b = new UVector32(status);
100 b->assign(*a, status);
103 TEST_CHECK_STATUS(status);
110 status = U_ZERO_ERROR;
111 a = new UVector32(status);
112 a->addElement(10, status);
113 a->addElement(20, status);
114 a->addElement(30, status);
115 b = new UVector32(status);
119 b->assign(*a, status);
123 b->addElement(666, status);
127 TEST_CHECK_STATUS(status);
138 status = U_ZERO_ERROR;
139 a = new UVector32(status);
140 a->addElement(10, status);
141 a->addElement(20, status);
142 a->addElement(30, status);
147 TEST_CHECK_STATUS(status);
153 status = U_ZERO_ERROR;
154 a = new UVector32(status);
155 a->addElement(10, status);
156 a->addElement(20, status);
157 a->addElement(30, status);
158 a->insertElementAt(666, 1, status);
164 TEST_CHECK_STATUS(status);
174 status = U_ZERO_ERROR;
175 a = new UVector32(status);
176 a->addElement(10, status);
177 a->addElement(20, status);
178 a->addElement(30, status);
180 TEST_CHECK_STATUS(status);
187 status = U_ZERO_ERROR;
188 a = new UVector32(status);
189 a->addElement(10, status);
190 a->addElement(20, status);
191 a->addElement(30, status);
196 TEST_CHECK_STATUS(status);
203 status = U_ZERO_ERROR;
204 a = new UVector32(status);
205 a->addElement(10, status);
206 a->addElement(20, status);
207 a->addElement(30, status);
212 TEST_CHECK_STATUS(status);
219 status = U_ZERO_ERROR;
220 a = new UVector32(status);
221 a->addElement(10, status);
222 a->addElement(20, status);
223 a->addElement(30, status);
224 b = new UVector32(status);
226 b->addElement(2, status);
231 b->addElement(30, status);
232 b->addElement(20, status);
235 b->addElement(2, status);
238 TEST_CHECK_STATUS(status);
245 status = U_ZERO_ERROR;
246 a = new UVector32(status);
247 a->addElement(10, status);
248 a->addElement(20, status);
249 a->addElement(30, status);
250 b = new UVector32(status);
253 b->addElement(20, status);
258 b->addElement(10, status);
262 TEST_CHECK_STATUS(status);
269 status = U_ZERO_ERROR;
270 a = new UVector32(status);
271 a->addElement(10, status);
272 a->addElement(20, status);
273 a->addElement(30, status);
274 b = new UVector32(status);
275 b->addElement(10, status);
276 b->addElement(20, status);
277 b->addElement(30, status);
278 b->addElement(15, status);
289 TEST_CHECK_STATUS(status);
308 status = U_ZERO_ERROR;
309 a = new UVector32(status);
311 a->addElement(10, status);
313 a->addElement(20, status);
318 TEST_CHECK_STATUS(status);
325 status = U_ZERO_ERROR;
326 a = new UVector32(status);
328 a->addElement(10, status);
329 TEST_ASSERT(a->ensureCapacity(5000, status)== TRUE);
330 TEST_ASSERT(a->expandCapacity(20000, status) == TRUE);
331 TEST_CHECK_STATUS(status);
337 status = U_ZERO_ERROR;
338 a = new UVector32(status);
339 a->addElement(10, status);
340 a->addElement(20, status);
341 a->addElement(30, status);
360 TEST_CHECK_STATUS(status);
366 status = U_ZERO_ERROR;
367 a = new UVector32(status);
368 a->addElement(10, status);
369 a->addElement(20, status);
370 a->addElement(30, status);
371 b = new UVector32(status);
373 b->addElement(5, status);
375 b->addElement(30, status);
378 TEST_CHECK_STATUS(status);
385 status = U_ZERO_ERROR;
386 a = new UVector32(status);
387 a->sortedInsert(30, status);
388 a->sortedInsert(20, status);
389 a->sortedInsert(10, status);
394 TEST_CHECK_STATUS(status);
400 status = U_ZERO_ERROR;
401 a = new UVector32(status);
402 a->addElement(10, status);
403 a->addElement(20, status);
414 TEST_CHECK_STATUS(status);
421 status = U_ZERO_ERROR;
422 a = new UVector32(status);
424 a->addElement(10, status);
426 a->addElement(20, status);
431 TEST_CHECK_STATUS(status);
438 status = U_ZERO_ERROR;
439 a = new UVector32(status);
440 a->addElement(10, status);
442 a->addElement(20, status);
444 a->addElement(30, status);
446 TEST_CHECK_STATUS(status);
453 status = U_ZERO_ERROR;
454 a = new UVector32(status);
455 a->addElement(10, status);
456 a->addElement(20, status);
457 a->addElement(30, status);
463 TEST_CHECK_STATUS(status);
469 status = U_ZERO_ERROR;
470 a = new UVector32(status);
471 TEST_ASSERT(a->push(10, status) == 10);
472 TEST_ASSERT(a->push(20, status) == 20);
473 TEST_ASSERT(a->push(30, status) == 30);
479 TEST_CHECK_STATUS(status);
486 status = U_ZERO_ERROR;
487 a = new UVector32(status);
488 a->ensureCapacity(1000, status);
492 TEST_CHECK_STATUS(status);