• Home
  • Raw
  • Download

Lines Matching refs:list1

161     ElList list1;  in test_tllist()  local
168 REPORTER_ASSERT(reporter, list1.isEmpty()); in test_tllist()
169 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kHead_IterStart)); in test_tllist()
170 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kTail_IterStart)); in test_tllist()
172 list1.popHead(); in test_tllist()
173 list1.popTail(); in test_tllist()
174 REPORTER_ASSERT(reporter, list1.isEmpty()); in test_tllist()
175 REPORTER_ASSERT(reporter, list1 == list2); in test_tllist()
178 list1.addToHead(ListElement(1)); in test_tllist()
180 iter1.init(list1, Iter::kHead_IterStart); in test_tllist()
181 iter2.init(list1, Iter::kTail_IterStart); in test_tllist()
187 REPORTER_ASSERT(reporter, list1 == list2); in test_tllist()
193 REPORTER_ASSERT(reporter, list2 == list1); in test_tllist()
197 REPORTER_ASSERT(reporter, list2 == list1); in test_tllist()
208 REPORTER_ASSERT(reporter, list1 != list2); in test_tllist()
209 list1.addToHead(ListElement(2)); in test_tllist()
210 REPORTER_ASSERT(reporter, list1 == list2); in test_tllist()
211 REPORTER_ASSERT(reporter, !list1.isEmpty()); in test_tllist()
213 list1.reset(); in test_tllist()
215 REPORTER_ASSERT(reporter, list1.isEmpty() && list2.isEmpty()); in test_tllist()
220 if (list1.isEmpty() || random.nextBiasedBool(3 * SK_Scalar1 / 4)) { in test_tllist()
228 list1.addToHead(ListElement(id)); in test_tllist()
231 list1.addToTail(ListElement(id)); in test_tllist()
235 int n = random.nextULessThan(list1.count()); in test_tllist()
236 Iter iter = list1.headIter(); in test_tllist()
250 list1.addBefore(iter, id); in test_tllist()
262 list1.addAfter(iter, id); in test_tllist()
279 int n = random.nextULessThan(list1.count()); in test_tllist()
292 Iter iter(list1, start); in test_tllist()
304 list1.remove(iter.get()); in test_tllist()
316 REPORTER_ASSERT(reporter, count == list1.count()); in test_tllist()