| 102 | }; |
| 103 | |
| 104 | void TListTest::TestQuickSort() { |
| 105 | TMyList l(1000); |
| 106 | size_t c = 0; |
| 107 | |
| 108 | l.QuickSort(TIntGreater()); |
| 109 | |
| 110 | UNIT_ASSERT_EQUAL(l.Size(), 1000); |
| 111 | |
| 112 | for (TMyList::TIterator it = l.Begin(); it != l.End(); ++it) { |
| 113 | UNIT_ASSERT_EQUAL(*it, int(1000 - c++)); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | void TListTest::TestSize() { |
| 118 | TMyList l(1024); |
nothing calls this directly
no test coverage detected