Home | History | Annotate | Download | only in cctest

Lines Matching refs:list

7 //       notice, this list of conditions and the following disclaimer.
9 // copyright notice, this list of conditions and the following
37 TEST(List) {
39 List<AstNode*>* list = new List<AstNode*>(0);
40 CHECK_EQ(0, list->length());
45 list->Add(node);
46 CHECK_EQ(1, list->length());
47 CHECK_EQ(node, list->at(0));
48 CHECK_EQ(node, list->last());
52 list->Add(node);
54 CHECK_EQ(1 + kElements, list->length());
56 list->Clear();
57 CHECK_EQ(0, list->length());
58 delete list;