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

Function Y_UNIT_TEST

util/generic/iterator_ut.cpp:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(TIterator) {
6 Y_UNIT_TEST(ToForwardIteratorTest) {
7 TVector<int> x = {1, 2};
8 UNIT_ASSERT_VALUES_EQUAL(*std::prev(x.end()), *ToForwardIterator(x.rbegin()));
9 UNIT_ASSERT_VALUES_EQUAL(*ToForwardIterator(std::prev(x.rend())), *x.begin());
10 }
11} // Y_UNIT_TEST_SUITE(TIterator)
12
13Y_UNIT_TEST_SUITE(TInputRangeAdaptor) {

Callers

nothing calls this directly

Calls 7

ToForwardIteratorFunction · 0.85
TUrlPartClass · 0.85
prevFunction · 0.50
endMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected