Lines Matching refs:testList
167 L<T1, T2> testList;
170 RTTESTI_CHECK(testList.isEmpty());
171 RTTESTI_CHECK(testList.size() == 0);
172 RTTESTI_CHECK(testList.capacity() == defCap);
184 testList.append(paTestData[i]);
185 RTTESTI_CHECK_RETV(testList.size() == cAdded);
186 RTTESTI_CHECK(testList.at(0) == paTestData[cTestItems / 2]);
187 RTTESTI_CHECK(testList[0] == paTestData[cTestItems / 2]);
188 RTTESTI_CHECK(testList.first() == paTestData[cTestItems / 2]);
189 RTTESTI_CHECK(testList.at(cAdded - 1) == paTestData[i]);
190 RTTESTI_CHECK(testList[cAdded - 1] == paTestData[i]);
191 RTTESTI_CHECK(testList.last() == paTestData[i]);
195 RTTESTI_CHECK_RETV(testList.size() == cTestItems / 2);
196 RTTESTI_CHECK_RETV(testList.isEmpty() == false);
197 for (size_t i = 0; i < testList.size(); ++i)
198 RTTESTI_CHECK(testList.at(i) == paTestData[cTestItems / 2 + i]);
204 testList.prepend(paTestData[i - 1]);
205 RTTESTI_CHECK_RETV(testList.size() == cAdded);
206 RTTESTI_CHECK(testList.at(0) == paTestData[i - 1]);
207 RTTESTI_CHECK(testList[0] == paTestData[i - 1]);
208 RTTESTI_CHECK(testList.first() == paTestData[i - 1]);
209 RTTESTI_CHECK(testList.at(cAdded - 1) == paTestData[cTestItems - 1]);
210 RTTESTI_CHECK(testList[cAdded - 1] == paTestData[cTestItems - 1]);
211 RTTESTI_CHECK(testList.last() == paTestData[cTestItems - 1]);
215 RTTESTI_CHECK_RETV(testList.size() == cTestItems);
216 RTTESTI_CHECK_RETV(testList.isEmpty() == false);
217 for (size_t i = 0; i < testList.size(); ++i)
218 RTTESTI_CHECK(testList.at(i) == paTestData[i]);
226 RTTESTI_CHECK( testList.contains(paTestData[0]));
227 RTTESTI_CHECK( testList.contains(paTestData[cTestItems / 2]));
228 RTTESTI_CHECK( testList.contains(paTestData[cTestItems - 1]));
229 RTTESTI_CHECK(!testList.contains(T1()));
239 L<T1, T2> testList3(testList);
250 testList4 = testList;
290 for (size_t i = 0; i < testList.size(); ++i)
291 RTTESTI_CHECK(testList[i] == paTestData[i]);
299 testList[i] = paTestData[cTestItems - i - 1];
300 RTTESTI_CHECK_RETV(testList.size() == cTestItems);
301 for (size_t i = 0; i < testList.size(); ++i)
302 RTTESTI_CHECK(testList[i] == paTestData[cTestItems - i - 1]);
310 testList.replace(i, paTestData[i]);
311 RTTESTI_CHECK_RETV(testList.size() == cTestItems);
312 for (size_t i = 0; i < testList.size(); ++i)
313 RTTESTI_CHECK(testList[i] == paTestData[i]);
329 testList.removeAt(i - 1);
330 RTTESTI_CHECK_RETV(testList.size() == cTestItems - cRemoved);
332 RTTESTI_CHECK_RETV(testList.size() == cTestItems / 2);
336 for (size_t i = 0; i < testList.size(); ++i)
337 RTTESTI_CHECK(testList.at(i) == paTestData[cTestItems / 2 + i]);
342 testList.setCapacity(cTestItems * 5);
343 RTTESTI_CHECK(testList.capacity() == cTestItems * 5);
344 RTTESTI_CHECK_RETV(testList.size() == cTestItems / 2);
348 for (size_t i = 0; i < testList.size(); ++i)
349 RTTESTI_CHECK(testList.at(i) == paTestData[cTestItems / 2 + i]);
354 testList.setCapacity(cTestItems / 4);
355 RTTESTI_CHECK_RETV(testList.size() == cTestItems / 4);
356 RTTESTI_CHECK(testList.capacity() == cTestItems / 4);
357 for (size_t i = 0; i < testList.size(); ++i)
358 RTTESTI_CHECK(testList.at(i) == paTestData[cTestItems / 2 + i]);
361 testList.clear();
362 RTTESTI_CHECK_RETV(testList.isEmpty());
363 RTTESTI_CHECK_RETV(testList.size() == 0);
364 RTTESTI_CHECK(testList.capacity() == defCap);
368 L<T1, T2> testList5(testList);
374 testList5 = testList;
618 MTTESTLISTTYPE<MTTESTTYPE> testList;
627 RTTESTI_CHECK_RC_RETV(RTThreadCreateF(&ahThreads[i], apfnThreads[i], &testList, 0,
639 RTTESTI_CHECK_RETV(testList.size() == MTTESTITEMS * 2);
640 for (size_t i = 0; i < testList.size(); ++i)
642 uint32_t a = testList.at(i);