Lines Matching full:test_assert
64 #define TEST_ASSERT(expr) \
99 TEST_ASSERT(b->size() == 3);
100 TEST_ASSERT(b->elementAti(1) == 20);
114 TEST_ASSERT(*b != *a);
115 TEST_ASSERT(!(*b == *a));
116 TEST_ASSERT(!b->equals(*a));
118 TEST_ASSERT(*b == *a);
119 TEST_ASSERT(!(*b != *a));
120 TEST_ASSERT(b->equals(*a));
122 TEST_ASSERT(*b != *a);
123 TEST_ASSERT(!(*b == *a));
124 TEST_ASSERT(!b->equals(*a));
142 TEST_ASSERT(a->elementAti(0) == 10);
143 TEST_ASSERT(a->elementAti(1) == 666);
144 TEST_ASSERT(a->size() == 3);
157 TEST_ASSERT(a->elementAti(0) == 10);
158 TEST_ASSERT(a->elementAti(1) == 666);
159 TEST_ASSERT(a->elementAti(2) == 20);
160 TEST_ASSERT(a->elementAti(3) == 30);
161 TEST_ASSERT(a->size() == 4);
177 TEST_ASSERT(a->lastElementi() == 30);
190 TEST_ASSERT(a->indexOf(30, 0) == 2);
191 TEST_ASSERT(a->indexOf(40, 0) == -1);
192 TEST_ASSERT(a->indexOf(10, 0) == 0);
193 TEST_ASSERT(a->indexOf(10, 1) == -1);
206 TEST_ASSERT(a->contains(10) == TRUE);
207 TEST_ASSERT(a->contains(11) == FALSE);
208 TEST_ASSERT(a->contains(20) == TRUE);
209 TEST_ASSERT(a->contains(-10) == FALSE);
223 TEST_ASSERT(a->containsAll(*b) == TRUE);
225 TEST_ASSERT(a->containsAll(*b) == FALSE);
227 TEST_ASSERT(a->containsAll(*b) == TRUE);
228 TEST_ASSERT(b->containsAll(*a) == FALSE);
231 TEST_ASSERT(a->containsAll(*b) == TRUE);
232 TEST_ASSERT(b->containsAll(*a) == TRUE);
234 TEST_ASSERT(a->containsAll(*b) == FALSE);
235 TEST_ASSERT(b->containsAll(*a) == TRUE);
250 TEST_ASSERT(a->size() == 3);
253 TEST_ASSERT(a->size() == 2);
254 TEST_ASSERT(a->contains(10)==TRUE);
255 TEST_ASSERT(a->contains(30)==TRUE);
258 TEST_ASSERT(a->size() == 1);
259 TEST_ASSERT(a->contains(30) == TRUE);
278 TEST_ASSERT(a->size() == 3);
281 TEST_ASSERT(a->contains(20) == FALSE);
282 TEST_ASSERT(a->size() == 2);
284 TEST_ASSERT(b->size() == 0);
286 TEST_ASSERT(a->size() == 0);
308 TEST_ASSERT(a->isEmpty() == TRUE);
310 TEST_ASSERT(a->isEmpty() == FALSE);
313 TEST_ASSERT(a->isEmpty() == FALSE);
315 TEST_ASSERT(a->isEmpty() == TRUE);
325 TEST_ASSERT(a->isEmpty() == TRUE);
327 TEST_ASSERT(a->ensureCapacity(5000, status)== TRUE);
328 TEST_ASSERT(a->expandCapacity(20000, status) == TRUE);
341 TEST_ASSERT(a->size() == 100);
342 TEST_ASSERT(a->elementAti(0) == 10);
343 TEST_ASSERT(a->elementAti(1) == 20);
344 TEST_ASSERT(a->elementAti(2) == 30);
345 TEST_ASSERT(a->elementAti(3) == 0);
348 TEST_ASSERT(a->elementAti(99) == 666);
349 TEST_ASSERT(a->elementAti(100) == 0);
351 TEST_ASSERT(a->elementAti(1) == 20);
352 TEST_ASSERT(a->elementAti(2) == 0);
353 TEST_ASSERT(a->size() == 2);
355 TEST_ASSERT(a->empty() == TRUE);
356 TEST_ASSERT(a->size() == 0);
370 TEST_ASSERT(a->containsNone(*b) == TRUE);
372 TEST_ASSERT(a->containsNone(*b) == TRUE);
374 TEST_ASSERT(a->containsNone(*b) == FALSE);
388 TEST_ASSERT(a->elementAti(0) == 10);
389 TEST_ASSERT(a->elementAti(1) == 20);
390 TEST_ASSERT(a->elementAti(2) == 30);
403 TEST_ASSERT(buf[0] == 10);
404 TEST_ASSERT(buf[1] == 20);
408 //TEST_ASSERT(buf != resizedBuf); // The buffer might have been realloc'd
409 TEST_ASSERT(resizedBuf[0] == 10);
410 TEST_ASSERT(resizedBuf[1] == 20);
421 TEST_ASSERT(a->empty() == TRUE);
423 TEST_ASSERT(a->empty() == FALSE);
426 TEST_ASSERT(a->empty() == FALSE);
428 TEST_ASSERT(a->empty() == TRUE);
439 TEST_ASSERT(a->peeki() == 10);
441 TEST_ASSERT(a->peeki() == 20);
443 TEST_ASSERT(a->peeki() == 30);
456 TEST_ASSERT(a->popi() == 30);
457 TEST_ASSERT(a->popi() == 20);
458 TEST_ASSERT(a->popi() == 10);
459 TEST_ASSERT(a->popi() == 0);
460 TEST_ASSERT(a->isEmpty());
469 TEST_ASSERT(a->push(10, status) == 10);
470 TEST_ASSERT(a->push(20, status) == 20);
471 TEST_ASSERT(a->push(30, status) == 30);
472 TEST_ASSERT(a->size() == 3);
473 TEST_ASSERT(a->popi() == 30);
474 TEST_ASSERT(a->popi() == 20);
475 TEST_ASSERT(a->popi() == 10);
476 TEST_ASSERT(a->isEmpty());