aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/hyperloglog/hyperloglog_ut.cpp
diff options
context:
space:
mode:
authorIvan Blinkov <ivan@blinkov.ru>2022-02-10 16:47:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:10 +0300
commit1aeb9a455974457866f78722ad98114bafc84e8a (patch)
treee4340eaf1668684d83a0a58c36947c5def5350ad /library/cpp/hyperloglog/hyperloglog_ut.cpp
parentbd5ef432f5cfb1e18851381329d94665a4c22470 (diff)
downloadydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/hyperloglog/hyperloglog_ut.cpp')
-rw-r--r--library/cpp/hyperloglog/hyperloglog_ut.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/hyperloglog/hyperloglog_ut.cpp b/library/cpp/hyperloglog/hyperloglog_ut.cpp
index b987aa0fa4..2aeda0d958 100644
--- a/library/cpp/hyperloglog/hyperloglog_ut.cpp
+++ b/library/cpp/hyperloglog/hyperloglog_ut.cpp
@@ -1,4 +1,4 @@
-#include "hyperloglog.h"
+#include "hyperloglog.h"
#include <util/generic/buffer.h>
#include <util/random/mersenne.h>
@@ -12,7 +12,7 @@ Y_UNIT_TEST_SUITE(THyperLogLog) {
Y_UNIT_TEST(TestPrecision18) {
TMersenne<ui64> rand;
- auto counter = THyperLogLog::Create(18);
+ auto counter = THyperLogLog::Create(18);
static const std::pair<ui64, ui64> POINTS[] = {
{10, 10},
@@ -40,7 +40,7 @@ Y_UNIT_TEST_SUITE(THyperLogLog) {
UNIT_ASSERT_EQUAL(estimation, pnt.second);
}
{
- auto counter2 = THyperLogLog::Create(18);
+ auto counter2 = THyperLogLog::Create(18);
while (unique < 2000000000) {
const auto val = rand();
counter2.Update(val);
@@ -59,7 +59,7 @@ Y_UNIT_TEST_SUITE(THyperLogLog) {
UNIT_ASSERT_EQUAL(stream.Buffer().Size(), 1 + (1 << 18));
stream.Rewind();
- const auto copy = THyperLogLog::Load(stream);
+ const auto copy = THyperLogLog::Load(stream);
UNIT_ASSERT_EQUAL(counter.Estimate(), copy.Estimate());
}