• Home
  • Raw
  • Download

Lines Matching refs:status

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