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