Lines Matching defs:cElements
51 static void tstRTListOrder(RTTEST hTest, PRTLISTNODE pList, unsigned cElements,
57 if (cElements > 1)
106 static void tstRTListCreate(RTTEST hTest, unsigned cElements)
108 RTTestISubF("Creating and moving - %u elements", cElements);
109 Assert(cElements > 0);
119 for (unsigned i = 0; i< cElements; i++)
129 tstRTListOrder(hTest, &ListHead, cElements, 0, cElements-1, 1);
141 tstRTListOrder(hTest, &ListHeadNew, cElements, 0, cElements-1, 1);
146 RTTestISubF("Safe iteration w/ removal - %u elements", cElements);
156 tstRTListOrder(hTest, &ListHead, cElements, 0, cElements-1, 1);
165 tstRTListOrder(hTest, &ListHeadNew, cElements, 0, cElements-1, 1);
170 if (cElements > 1)
173 RTTestISubF("Remove every second node - %u elements", cElements);
176 for (unsigned i = 0; i < cElements; i++)
189 bool fElementsEven = (cElements % 2) == 0;
190 unsigned idxEnd = fElementsEven ? cElements - 1 : cElements - 2;
192 cElements /= 2;
193 tstRTListOrder(hTest, &ListHeadNew, cElements, 1, idxEnd, 2);
197 RTTestISubF("Remove all nodes - %u elements", cElements);
199 for (unsigned i = 0; i < cElements; i++)