aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/xrange_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /util/generic/xrange_ut.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/xrange_ut.cpp')
-rw-r--r--util/generic/xrange_ut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/xrange_ut.cpp b/util/generic/xrange_ut.cpp
index 8106da03e7..66c8b1d83a 100644
--- a/util/generic/xrange_ut.cpp
+++ b/util/generic/xrange_ut.cpp
@@ -30,7 +30,7 @@ Y_UNIT_TEST_SUITE(XRange) {
UNIT_ASSERT_VALUES_EQUAL(sum, count * (first + last) / 2);
}
- void TestSteppedXRangeImpl(int begin, int end, int step, const TVector<int>& expected) {
+ void TestSteppedXRangeImpl(int begin, int end, int step, const TVector<int>& expected) {
size_t expInd = 0;
for (auto i : xrange(begin, end, step)) {
UNIT_ASSERT(expInd < expected.size());
@@ -65,7 +65,7 @@ Y_UNIT_TEST_SUITE(XRange) {
}
Y_UNIT_TEST(PointersWorks) {
- TVector<size_t> data = {3, 1, 4, 1, 5, 9, 2, 6};
+ TVector<size_t> data = {3, 1, 4, 1, 5, 9, 2, 6};
const size_t digSumExpected = Accumulate(data.begin(), data.end(), static_cast<size_t>(0));
size_t digSumByIt = 0;
for (auto ptr : xrange(data.begin(), data.end())) {
@@ -85,19 +85,19 @@ Y_UNIT_TEST_SUITE(XRange) {
UNIT_ASSERT_VALUES_EQUAL(xrange(0, 6, 2).size(), 3);
}
- class TVectorChild: public TVector<size_t> {
+ class TVectorChild: public TVector<size_t> {
public:
template <typename TIterator>
TVectorChild(TIterator a, TIterator b)
- : TVector<size_t>(a, b)
+ : TVector<size_t>(a, b)
{
}
};
Y_UNIT_TEST(ConvertionWorks) {
- TVector<size_t> data = {0, 1, 2, 3, 4, 5, 6, 7, 8};
+ TVector<size_t> data = {0, 1, 2, 3, 4, 5, 6, 7, 8};
- TVector<size_t> convertionResults[] = {xrange<size_t>(9),
+ TVector<size_t> convertionResults[] = {xrange<size_t>(9),
xrange<ui32>(0, 9),
xrange(0, 9, 1)};
@@ -124,7 +124,7 @@ Y_UNIT_TEST_SUITE(XRange) {
}
using TValueType = decltype(*emptyRange.begin());
- const TVector<TValueType> asVector = emptyRange;
+ const TVector<TValueType> asVector = emptyRange;
UNIT_ASSERT(asVector.empty());
}
}