• Home
  • Raw
  • Download

Lines Matching refs:a

77     UVector32     *a;  in UVector32_API()  local
80 a = new UVector32(status); in UVector32_API()
82 delete a; in UVector32_API()
85 a = new UVector32(2000, status); in UVector32_API()
87 delete a; 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()
98 b->assign(*a, status); in UVector32_API()
102 delete a; 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()
114 TEST_ASSERT(*b != *a); in UVector32_API()
115 TEST_ASSERT(!(*b == *a)); in UVector32_API()
116 TEST_ASSERT(!b->equals(*a)); in UVector32_API()
117 b->assign(*a, status); in UVector32_API()
118 TEST_ASSERT(*b == *a); in UVector32_API()
119 TEST_ASSERT(!(*b != *a)); in UVector32_API()
120 TEST_ASSERT(b->equals(*a)); in UVector32_API()
122 TEST_ASSERT(*b != *a); in UVector32_API()
123 TEST_ASSERT(!(*b == *a)); in UVector32_API()
124 TEST_ASSERT(!b->equals(*a)); in UVector32_API()
127 delete a; 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()
141 a->setElementAt(666, 1); in UVector32_API()
142 TEST_ASSERT(a->elementAti(0) == 10); in UVector32_API()
143 TEST_ASSERT(a->elementAti(1) == 666); in UVector32_API()
144 TEST_ASSERT(a->size() == 3); in UVector32_API()
146 delete a; 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()
157 TEST_ASSERT(a->elementAti(0) == 10); in UVector32_API()
158 TEST_ASSERT(a->elementAti(1) == 666); in UVector32_API()
159 TEST_ASSERT(a->elementAti(2) == 20); in UVector32_API()
160 TEST_ASSERT(a->elementAti(3) == 30); in UVector32_API()
161 TEST_ASSERT(a->size() == 4); in UVector32_API()
163 delete a; 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()
177 TEST_ASSERT(a->lastElementi() == 30); in UVector32_API()
179 delete a; 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()
190 TEST_ASSERT(a->indexOf(30, 0) == 2); in UVector32_API()
191 TEST_ASSERT(a->indexOf(40, 0) == -1); in UVector32_API()
192 TEST_ASSERT(a->indexOf(10, 0) == 0); in UVector32_API()
193 TEST_ASSERT(a->indexOf(10, 1) == -1); in UVector32_API()
195 delete a; 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()
206 TEST_ASSERT(a->contains(10) == TRUE); in UVector32_API()
207 TEST_ASSERT(a->contains(11) == FALSE); in UVector32_API()
208 TEST_ASSERT(a->contains(20) == TRUE); in UVector32_API()
209 TEST_ASSERT(a->contains(-10) == FALSE); in UVector32_API()
211 delete a; 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()
223 TEST_ASSERT(a->containsAll(*b) == TRUE); in UVector32_API()
225 TEST_ASSERT(a->containsAll(*b) == FALSE); in UVector32_API()
227 TEST_ASSERT(a->containsAll(*b) == TRUE); in UVector32_API()
228 TEST_ASSERT(b->containsAll(*a) == FALSE); in UVector32_API()
231 TEST_ASSERT(a->containsAll(*b) == TRUE); in UVector32_API()
232 TEST_ASSERT(b->containsAll(*a) == TRUE); in UVector32_API()
234 TEST_ASSERT(a->containsAll(*b) == FALSE); in UVector32_API()
235 TEST_ASSERT(b->containsAll(*a) == TRUE); in UVector32_API()
237 delete a; 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()
249 a->removeAll(*b); in UVector32_API()
250 TEST_ASSERT(a->size() == 3); in UVector32_API()
252 a->removeAll(*b); in UVector32_API()
253 TEST_ASSERT(a->size() == 2); in UVector32_API()
254 TEST_ASSERT(a->contains(10)==TRUE); in UVector32_API()
255 TEST_ASSERT(a->contains(30)==TRUE); in UVector32_API()
257 a->removeAll(*b); in UVector32_API()
258 TEST_ASSERT(a->size() == 1); in UVector32_API()
259 TEST_ASSERT(a->contains(30) == TRUE); in UVector32_API()
261 delete a; 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()
277 a->retainAll(*b); in UVector32_API()
278 TEST_ASSERT(a->size() == 3); in UVector32_API()
280 a->retainAll(*b); in UVector32_API()
281 TEST_ASSERT(a->contains(20) == FALSE); in UVector32_API()
282 TEST_ASSERT(a->size() == 2); in UVector32_API()
285 a->retainAll(*b); in UVector32_API()
286 TEST_ASSERT(a->size() == 0); in UVector32_API()
288 delete a; in UVector32_API()
307 a = new UVector32(status); in UVector32_API()
308 TEST_ASSERT(a->isEmpty() == TRUE); in UVector32_API()
309 a->addElement(10, status); in UVector32_API()
310 TEST_ASSERT(a->isEmpty() == FALSE); in UVector32_API()
311 a->addElement(20, status); in UVector32_API()
312 a->removeElementAt(0); in UVector32_API()
313 TEST_ASSERT(a->isEmpty() == FALSE); in UVector32_API()
314 a->removeElementAt(0); in UVector32_API()
315 TEST_ASSERT(a->isEmpty() == TRUE); in UVector32_API()
317 delete a; in UVector32_API()
324 a = new UVector32(status); in UVector32_API()
325 TEST_ASSERT(a->isEmpty() == TRUE); 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()
330 delete a; 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()
340 a->setSize(100); in UVector32_API()
341 TEST_ASSERT(a->size() == 100); in UVector32_API()
342 TEST_ASSERT(a->elementAti(0) == 10); in UVector32_API()
343 TEST_ASSERT(a->elementAti(1) == 20); in UVector32_API()
344 TEST_ASSERT(a->elementAti(2) == 30); in UVector32_API()
345 TEST_ASSERT(a->elementAti(3) == 0); in UVector32_API()
346 a->setElementAt(666, 99); in UVector32_API()
347 a->setElementAt(777, 100); in UVector32_API()
348 TEST_ASSERT(a->elementAti(99) == 666); in UVector32_API()
349 TEST_ASSERT(a->elementAti(100) == 0); in UVector32_API()
350 a->setSize(2); in UVector32_API()
351 TEST_ASSERT(a->elementAti(1) == 20); in UVector32_API()
352 TEST_ASSERT(a->elementAti(2) == 0); in UVector32_API()
353 TEST_ASSERT(a->size() == 2); in UVector32_API()
354 a->setSize(0); in UVector32_API()
355 TEST_ASSERT(a->empty() == TRUE); in UVector32_API()
356 TEST_ASSERT(a->size() == 0); in UVector32_API()
359 delete a; 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()
370 TEST_ASSERT(a->containsNone(*b) == TRUE); in UVector32_API()
372 TEST_ASSERT(a->containsNone(*b) == TRUE); in UVector32_API()
374 TEST_ASSERT(a->containsNone(*b) == FALSE); in UVector32_API()
377 delete a; 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()
388 TEST_ASSERT(a->elementAti(0) == 10); in UVector32_API()
389 TEST_ASSERT(a->elementAti(1) == 20); in UVector32_API()
390 TEST_ASSERT(a->elementAti(2) == 30); in UVector32_API()
393 delete a; 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()
402 int32_t *buf = a->getBuffer(); in UVector32_API()
405 a->setSize(20000); in UVector32_API()
407 resizedBuf = a->getBuffer(); in UVector32_API()
413 delete a; in UVector32_API()
420 a = new UVector32(status); in UVector32_API()
421 TEST_ASSERT(a->empty() == TRUE); in UVector32_API()
422 a->addElement(10, status); in UVector32_API()
423 TEST_ASSERT(a->empty() == FALSE); in UVector32_API()
424 a->addElement(20, status); in UVector32_API()
425 a->removeElementAt(0); in UVector32_API()
426 TEST_ASSERT(a->empty() == FALSE); in UVector32_API()
427 a->removeElementAt(0); in UVector32_API()
428 TEST_ASSERT(a->empty() == TRUE); in UVector32_API()
430 delete a; in UVector32_API()
437 a = new UVector32(status); in UVector32_API()
438 a->addElement(10, status); in UVector32_API()
439 TEST_ASSERT(a->peeki() == 10); in UVector32_API()
440 a->addElement(20, status); in UVector32_API()
441 TEST_ASSERT(a->peeki() == 20); in UVector32_API()
442 a->addElement(30, status); in UVector32_API()
443 TEST_ASSERT(a->peeki() == 30); in UVector32_API()
445 delete a; 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()
456 TEST_ASSERT(a->popi() == 30); in UVector32_API()
457 TEST_ASSERT(a->popi() == 20); in UVector32_API()
458 TEST_ASSERT(a->popi() == 10); in UVector32_API()
459 TEST_ASSERT(a->popi() == 0); in UVector32_API()
460 TEST_ASSERT(a->isEmpty()); in UVector32_API()
462 delete a; 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()
472 TEST_ASSERT(a->size() == 3); in UVector32_API()
473 TEST_ASSERT(a->popi() == 30); in UVector32_API()
474 TEST_ASSERT(a->popi() == 20); in UVector32_API()
475 TEST_ASSERT(a->popi() == 10); in UVector32_API()
476 TEST_ASSERT(a->isEmpty()); in UVector32_API()
478 delete a; in UVector32_API()
485 a = new UVector32(status); in UVector32_API()
486 a->ensureCapacity(1000, status); in UVector32_API()
491 delete a; in UVector32_API()