• Home
  • Raw
  • Download

Lines Matching refs:status

60 #define TEST_CHECK_STATUS(status) UPRV_BLOCK_MACRO_BEGIN {\  argument
61 if (U_FAILURE(status)) {\
62 errln("UVector32Test failure at line %d. status=%s\n", __LINE__, u_errorName(status));\
80 UErrorCode status = U_ZERO_ERROR; in UVector32_API() local
84 a = new UVector32(status); in UVector32_API()
85 TEST_CHECK_STATUS(status); in UVector32_API()
88 status = U_ZERO_ERROR; in UVector32_API()
89 a = new UVector32(2000, status); in UVector32_API()
90 TEST_CHECK_STATUS(status); in UVector32_API()
96 status = U_ZERO_ERROR; in UVector32_API()
97 a = new UVector32(status); in UVector32_API()
98 a->addElement(10, status); in UVector32_API()
99 a->addElement(20, status); in UVector32_API()
100 a->addElement(30, status); in UVector32_API()
101 b = new UVector32(status); in UVector32_API()
102 b->assign(*a, status); in UVector32_API()
105 TEST_CHECK_STATUS(status); in UVector32_API()
112 status = U_ZERO_ERROR; in UVector32_API()
113 a = new UVector32(status); in UVector32_API()
114 a->addElement(10, status); in UVector32_API()
115 a->addElement(20, status); in UVector32_API()
116 a->addElement(30, status); in UVector32_API()
117 b = new UVector32(status); in UVector32_API()
121 b->assign(*a, status); in UVector32_API()
125 b->addElement(666, status); in UVector32_API()
129 TEST_CHECK_STATUS(status); in UVector32_API()
140 status = U_ZERO_ERROR; in UVector32_API()
141 a = new UVector32(status); in UVector32_API()
142 a->addElement(10, status); in UVector32_API()
143 a->addElement(20, status); in UVector32_API()
144 a->addElement(30, status); in UVector32_API()
149 TEST_CHECK_STATUS(status); in UVector32_API()
155 status = U_ZERO_ERROR; in UVector32_API()
156 a = new UVector32(status); in UVector32_API()
157 a->addElement(10, status); in UVector32_API()
158 a->addElement(20, status); in UVector32_API()
159 a->addElement(30, status); in UVector32_API()
160 a->insertElementAt(666, 1, status); in UVector32_API()
166 TEST_CHECK_STATUS(status); in UVector32_API()
176 status = U_ZERO_ERROR; in UVector32_API()
177 a = new UVector32(status); in UVector32_API()
178 a->addElement(10, status); in UVector32_API()
179 a->addElement(20, status); in UVector32_API()
180 a->addElement(30, status); in UVector32_API()
182 TEST_CHECK_STATUS(status); in UVector32_API()
189 status = U_ZERO_ERROR; in UVector32_API()
190 a = new UVector32(status); in UVector32_API()
191 a->addElement(10, status); in UVector32_API()
192 a->addElement(20, status); in UVector32_API()
193 a->addElement(30, status); in UVector32_API()
198 TEST_CHECK_STATUS(status); in UVector32_API()
205 status = U_ZERO_ERROR; in UVector32_API()
206 a = new UVector32(status); in UVector32_API()
207 a->addElement(10, status); in UVector32_API()
208 a->addElement(20, status); in UVector32_API()
209 a->addElement(30, status); in UVector32_API()
214 TEST_CHECK_STATUS(status); in UVector32_API()
221 status = U_ZERO_ERROR; in UVector32_API()
222 a = new UVector32(status); in UVector32_API()
223 a->addElement(10, status); in UVector32_API()
224 a->addElement(20, status); in UVector32_API()
225 a->addElement(30, status); in UVector32_API()
226 b = new UVector32(status); in UVector32_API()
228 b->addElement(2, status); in UVector32_API()
233 b->addElement(30, status); in UVector32_API()
234 b->addElement(20, status); in UVector32_API()
237 b->addElement(2, status); in UVector32_API()
240 TEST_CHECK_STATUS(status); in UVector32_API()
247 status = U_ZERO_ERROR; in UVector32_API()
248 a = new UVector32(status); in UVector32_API()
249 a->addElement(10, status); in UVector32_API()
250 a->addElement(20, status); in UVector32_API()
251 a->addElement(30, status); in UVector32_API()
252 b = new UVector32(status); in UVector32_API()
255 b->addElement(20, status); in UVector32_API()
260 b->addElement(10, status); in UVector32_API()
264 TEST_CHECK_STATUS(status); in UVector32_API()
271 status = U_ZERO_ERROR; in UVector32_API()
272 a = new UVector32(status); in UVector32_API()
273 a->addElement(10, status); in UVector32_API()
274 a->addElement(20, status); in UVector32_API()
275 a->addElement(30, status); in UVector32_API()
276 b = new UVector32(status); in UVector32_API()
277 b->addElement(10, status); in UVector32_API()
278 b->addElement(20, status); in UVector32_API()
279 b->addElement(30, status); in UVector32_API()
280 b->addElement(15, status); in UVector32_API()
291 TEST_CHECK_STATUS(status); in UVector32_API()
310 status = U_ZERO_ERROR; in UVector32_API()
311 a = new UVector32(status); in UVector32_API()
313 a->addElement(10, status); in UVector32_API()
315 a->addElement(20, status); in UVector32_API()
320 TEST_CHECK_STATUS(status); in UVector32_API()
327 status = U_ZERO_ERROR; in UVector32_API()
328 a = new UVector32(status); in UVector32_API()
330 a->addElement(10, status); in UVector32_API()
331 TEST_ASSERT(a->ensureCapacity(5000, status)== true); in UVector32_API()
332 TEST_ASSERT(a->expandCapacity(20000, status) == true); in UVector32_API()
333 TEST_CHECK_STATUS(status); in UVector32_API()
339 status = U_ZERO_ERROR; in UVector32_API()
340 a = new UVector32(status); in UVector32_API()
341 a->addElement(10, status); in UVector32_API()
342 a->addElement(20, status); in UVector32_API()
343 a->addElement(30, status); in UVector32_API()
362 TEST_CHECK_STATUS(status); in UVector32_API()
368 status = U_ZERO_ERROR; in UVector32_API()
369 a = new UVector32(status); in UVector32_API()
370 a->addElement(10, status); in UVector32_API()
371 a->addElement(20, status); in UVector32_API()
372 a->addElement(30, status); in UVector32_API()
373 b = new UVector32(status); in UVector32_API()
375 b->addElement(5, status); in UVector32_API()
377 b->addElement(30, status); in UVector32_API()
380 TEST_CHECK_STATUS(status); in UVector32_API()
387 status = U_ZERO_ERROR; in UVector32_API()
388 a = new UVector32(status); in UVector32_API()
389 a->sortedInsert(30, status); in UVector32_API()
390 a->sortedInsert(20, status); in UVector32_API()
391 a->sortedInsert(10, status); in UVector32_API()
396 TEST_CHECK_STATUS(status); in UVector32_API()
402 status = U_ZERO_ERROR; in UVector32_API()
403 a = new UVector32(status); in UVector32_API()
404 a->addElement(10, status); in UVector32_API()
405 a->addElement(20, status); in UVector32_API()
416 TEST_CHECK_STATUS(status); in UVector32_API()
423 status = U_ZERO_ERROR; in UVector32_API()
424 a = new UVector32(status); in UVector32_API()
426 a->addElement(10, status); in UVector32_API()
428 a->addElement(20, status); in UVector32_API()
433 TEST_CHECK_STATUS(status); in UVector32_API()
440 status = U_ZERO_ERROR; in UVector32_API()
441 a = new UVector32(status); in UVector32_API()
442 a->addElement(10, status); in UVector32_API()
444 a->addElement(20, status); in UVector32_API()
446 a->addElement(30, status); in UVector32_API()
448 TEST_CHECK_STATUS(status); in UVector32_API()
455 status = U_ZERO_ERROR; in UVector32_API()
456 a = new UVector32(status); in UVector32_API()
457 a->addElement(10, status); in UVector32_API()
458 a->addElement(20, status); in UVector32_API()
459 a->addElement(30, status); in UVector32_API()
465 TEST_CHECK_STATUS(status); in UVector32_API()
471 status = U_ZERO_ERROR; in UVector32_API()
472 a = new UVector32(status); in UVector32_API()
473 TEST_ASSERT(a->push(10, status) == 10); in UVector32_API()
474 TEST_ASSERT(a->push(20, status) == 20); in UVector32_API()
475 TEST_ASSERT(a->push(30, status) == 30); in UVector32_API()
481 TEST_CHECK_STATUS(status); in UVector32_API()
488 status = U_ZERO_ERROR; in UVector32_API()
489 a = new UVector32(status); in UVector32_API()
490 a->ensureCapacity(1000, status); in UVector32_API()
494 TEST_CHECK_STATUS(status); in UVector32_API()