aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/intrlist_ut.cpp
diff options
context:
space:
mode:
authorprout <prout@yandex-team.ru>2022-02-10 16:49:43 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:43 +0300
commitd2247f243d31adde8feb765324e40c83c5a90999 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/intrlist_ut.cpp
parent7b7fa28b9099b7adca890459a699c6ba5eeff4ca (diff)
downloadydb-d2247f243d31adde8feb765324e40c83c5a90999.tar.gz
Restoring authorship annotation for <prout@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/intrlist_ut.cpp')
-rw-r--r--util/generic/intrlist_ut.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/generic/intrlist_ut.cpp b/util/generic/intrlist_ut.cpp
index 25892b9cab..eff7cdf2ee 100644
--- a/util/generic/intrlist_ut.cpp
+++ b/util/generic/intrlist_ut.cpp
@@ -95,9 +95,9 @@ public:
}
};
-struct TIntGreater: private TGreater<int> {
+struct TIntGreater: private TGreater<int> {
inline bool operator()(const TInt& l, const TInt& r) const noexcept {
- return TGreater<int>::operator()(l, r);
+ return TGreater<int>::operator()(l, r);
}
};
@@ -105,7 +105,7 @@ void TListTest::TestQuickSort() {
TMyList l(1000);
size_t c = 0;
- l.QuickSort(TIntGreater());
+ l.QuickSort(TIntGreater());
UNIT_ASSERT_EQUAL(l.Size(), 1000);
@@ -137,9 +137,9 @@ void TListTest::TestRIterate() {
TMyList l(1000);
size_t c = 1000;
- UNIT_ASSERT_EQUAL(l.RBegin(), TMyList::TReverseIterator(l.End()));
- UNIT_ASSERT_EQUAL(l.REnd(), TMyList::TReverseIterator(l.Begin()));
-
+ UNIT_ASSERT_EQUAL(l.RBegin(), TMyList::TReverseIterator(l.End()));
+ UNIT_ASSERT_EQUAL(l.REnd(), TMyList::TReverseIterator(l.Begin()));
+
for (TMyList::TReverseIterator it = l.RBegin(); it != l.REnd(); ++it) {
UNIT_ASSERT_EQUAL(*it, (int)c--);
}