Lines Matching refs:list2
157 ElList list2;
170 REPORTER_ASSERT(reporter, list1 == list2);
174 list2.addToTail(ListElement(1));
178 iter3.init(list2, Iter::kHead_IterStart);
179 iter4.init(list2, Iter::kTail_IterStart);
182 REPORTER_ASSERT(reporter, list1 == list2);
184 list2.reset();
187 list2.addBefore(list2.headIter(), 1);
188 REPORTER_ASSERT(reporter, list2 == list1);
189 list2.reset();
191 list2.addAfter(list2.tailIter(), 1);
192 REPORTER_ASSERT(reporter, list2 == list1);
195 iter3.init(list2, Iter::kHead_IterStart);
196 iter4.init(list2, Iter::kTail_IterStart);
197 list2.addToHead(ListElement(2));
201 REPORTER_ASSERT(reporter, 1 == Iter(list2, Iter::kTail_IterStart).get()->fID);
202 REPORTER_ASSERT(reporter, 2 == Iter(list2, Iter::kHead_IterStart).get()->fID);
203 REPORTER_ASSERT(reporter, list1 != list2);
205 REPORTER_ASSERT(reporter, list1 == list2);
209 list2.reset();
210 REPORTER_ASSERT(reporter, list1.isEmpty() && list2.isEmpty());