aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/packers/ut/packers_ut.cpp
diff options
context:
space:
mode:
authorRuslan Kovalev <ruslan.a.kovalev@gmail.com>2022-02-10 16:46:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:45 +0300
commit9123176b341b6f2658cff5132482b8237c1416c8 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/packers/ut/packers_ut.cpp
parent59e19371de37995fcb36beb16cd6ec030af960bc (diff)
downloadydb-9123176b341b6f2658cff5132482b8237c1416c8.tar.gz
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/packers/ut/packers_ut.cpp')
-rw-r--r--library/cpp/packers/ut/packers_ut.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/packers/ut/packers_ut.cpp b/library/cpp/packers/ut/packers_ut.cpp
index 331ff7f995..18ce2150d1 100644
--- a/library/cpp/packers/ut/packers_ut.cpp
+++ b/library/cpp/packers/ut/packers_ut.cpp
@@ -17,14 +17,14 @@
#include <util/string/hex.h>
-#include "packers.h"
+#include "packers.h"
#include <array>
#include <iterator>
class TPackersTest: public TTestBase {
private:
- UNIT_TEST_SUITE(TPackersTest);
+ UNIT_TEST_SUITE(TPackersTest);
UNIT_TEST(TestPackers);
UNIT_TEST_SUITE_END();
@@ -38,10 +38,10 @@ public:
void TestPackers();
};
-UNIT_TEST_SUITE_REGISTRATION(TPackersTest);
+UNIT_TEST_SUITE_REGISTRATION(TPackersTest);
template <class TData, class TPacker>
-void TPackersTest::TestPacker(const TData& data) {
+void TPackersTest::TestPacker(const TData& data) {
size_t len = TPacker().MeasureLeaf(data);
size_t bufLen = len * 3;
@@ -58,13 +58,13 @@ void TPackersTest::TestPacker(const TData& data) {
}
template <class TData, class TPacker>
-void TPackersTest::TestPacker(const TData* test, size_t size) {
+void TPackersTest::TestPacker(const TData* test, size_t size) {
for (size_t i = 0; i < size; ++i) {
TestPacker<TData, TPacker>(test[i]);
}
}
-void TPackersTest::TestPackers() {
+void TPackersTest::TestPackers() {
{
const TString test[] = {"",
"a", "b", "c", "d",
@@ -91,20 +91,20 @@ void TPackersTest::TestPackers() {
TestPacker<int, NPackers::TPacker<int>>(test, Y_ARRAY_SIZE(test));
}
- {
- const float test[] = {
- 2.f, 3.f, 4.f, 0.f, -0.f, 1.f, -1.f, 1.1f, -1.1f,
+ {
+ const float test[] = {
+ 2.f, 3.f, 4.f, 0.f, -0.f, 1.f, -1.f, 1.1f, -1.1f,
std::numeric_limits<float>::min(), -std::numeric_limits<float>::min(),
std::numeric_limits<float>::max(), -std::numeric_limits<float>::max()};
-
- TestPacker<float, NPackers::TFloatPacker>(test, Y_ARRAY_SIZE(test));
- }
- {
- const double test[] = {
- 0., -0., 1., -1., 1.1, -1.1,
+
+ TestPacker<float, NPackers::TFloatPacker>(test, Y_ARRAY_SIZE(test));
+ }
+ {
+ const double test[] = {
+ 0., -0., 1., -1., 1.1, -1.1,
std::numeric_limits<double>::min(), -std::numeric_limits<double>::min(),
std::numeric_limits<double>::max(), -std::numeric_limits<double>::max()};
-
- TestPacker<double, NPackers::TDoublePacker>(test, Y_ARRAY_SIZE(test));
- }
+
+ TestPacker<double, NPackers::TDoublePacker>(test, Y_ARRAY_SIZE(test));
+ }
}