MCPcopy Create free account
hub / github.com/catboost/catboost / CheckIterationAfterAppend

Function CheckIterationAfterAppend

util/generic/intrlist_ut.cpp:280–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280static void CheckIterationAfterAppend(const TMyList& l, size_t N, size_t M) {
281 TMyList::TConstIterator it = l.Begin();
282
283 for (size_t i = 1; i <= N; ++i, ++it) {
284 UNIT_ASSERT_EQUAL((int)i, *it);
285 }
286
287 for (size_t i = 1; i <= M; ++i, ++it) {
288 UNIT_ASSERT_EQUAL((int)i, *it);
289 }
290
291 UNIT_ASSERT_EQUAL(it, l.End());
292}
293
294static void TestAppend(int N, int M) {
295 TMyList l(N);

Callers 1

TestAppendFunction · 0.85

Calls 2

BeginMethod · 0.45
EndMethod · 0.45

Tested by 1

TestAppendFunction · 0.68