| 250 | } |
| 251 | |
| 252 | static void TestCutBack(int N, int M) { |
| 253 | TMyList l(N); |
| 254 | TMyList l2(0); |
| 255 | |
| 256 | TMyList::TIterator it = l.Begin(); |
| 257 | for (int i = 0; i < M; ++i) { |
| 258 | ++it; |
| 259 | } |
| 260 | |
| 261 | TMyList::Cut(it, l.End(), l2.End()); |
| 262 | CheckIterationAfterCut(l, l2, N, M); |
| 263 | } |
| 264 | |
| 265 | void TListTest::TestCut() { |
| 266 | TestCutFront(1000, 500); |
no test coverage detected