// Project UID c1f28c309e55405daf00c565d57ff9ad
#include “List.h”
#include “List.h” // check for proper include guards
#include
using std::cout;
using std::endl;
// THIS TEST CASE WILL ONLY TELL YOU IF YOUR CODE COMPILES.
// YOU NEED TO WRITE YOUR OWN COMPREHENSIVE TEST CASES IN List_tests.cpp
int main()
{
List
int size = 0;
my_list.empty();
my_list.size();
cout << (my_list.size() == size) << endl;
my_list.push_front(42);
my_list.push_back(42);
my_list.front() = 73;
my_list.back() = 73;
my_list.pop_front();
my_list.pop_back();
List
list2 = my_list;
List
my_list.insert(iter, 42);
iter = my_list.begin();
my_list.erase(iter);
iter = my_list.begin();
List
const List
bool b = iter == iter2;
b = iter3 == my_list.end();
b = my_list.end() == iter3;
my_list.push_front(42);
my_list.push_back(42);
iter = my_list.begin();
b = iter != iter2;
b = iter3 != my_list.end();
b = my_list.end() != iter3;
cout << b << endl;
++iter;
cout << *iter << endl;
List
iter_cpy = iter;
cout << *++--iter << endl;
cout << *--++my_list.begin() << endl;
my_list.insert(my_list.begin(), 3);
my_list.erase(my_list.begin());
List
list3.push_back(3);
cout << *list3.begin() << endl;
List
list4.push_back(4);
cout << list4.size() << endl;
my_list.clear();
return 0;
}