diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/bit_io/bitinout_ut.cpp | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/bit_io/bitinout_ut.cpp')
-rw-r--r-- | library/cpp/bit_io/bitinout_ut.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/bit_io/bitinout_ut.cpp b/library/cpp/bit_io/bitinout_ut.cpp index da71d68070..23a1ddf344 100644 --- a/library/cpp/bit_io/bitinout_ut.cpp +++ b/library/cpp/bit_io/bitinout_ut.cpp @@ -3,16 +3,16 @@ #include <library/cpp/testing/unittest/registar.h> -#include <util/stream/buffer.h> +#include <util/stream/buffer.h> #include <util/generic/buffer.h> namespace NBitIO { static const char BITS_REF[] = - "00100010 01000000 00000000 00100111 11011111 01100111 11010101 00010100 " - "00100010 01100011 11100011 00110000 11011011 11011111 01001100 00110101 " - "10011110 01011111 01010000 00000110 00011011 00100110 00010100 01110011 " - "00001010 10101010 10101010 10101010 10101010 10101010 10101010 10101010 " - "10110101 01010101 01010101 01010101 01010101 01010101 01010101 01010101 " + "00100010 01000000 00000000 00100111 11011111 01100111 11010101 00010100 " + "00100010 01100011 11100011 00110000 11011011 11011111 01001100 00110101 " + "10011110 01011111 01010000 00000110 00011011 00100110 00010100 01110011 " + "00001010 10101010 10101010 10101010 10101010 10101010 10101010 10101010 " + "10110101 01010101 01010101 01010101 01010101 01010101 01010101 01010101 " "01000000"; inline ui64 Bits(ui64 bytes) { @@ -47,7 +47,7 @@ namespace NBitIO { class TBitIOTest: public TTestBase { UNIT_TEST_SUITE(TBitIOTest); - UNIT_TEST(TestBitIO) + UNIT_TEST(TestBitIO) UNIT_TEST_SUITE_END(); private: @@ -59,13 +59,13 @@ private: } void DoRead(TBi& b, ui32& t) { - b.Read(t, 1, 0); // 1 + b.Read(t, 1, 0); // 1 b.ReadK<3>(t, 1); // 4 - b.Read(t, 5, 4); // 9 + b.Read(t, 5, 4); // 9 b.ReadK<14>(t, 9); // 23 - b.Read(t, 1, 23); // 24 + b.Read(t, 1, 23); // 24 b.ReadK<5>(t, 24); // 29 - b.Read(t, 3, 29); // 32 + b.Read(t, 3, 29); // 32 } template <typename TBo> @@ -76,7 +76,7 @@ private: b.Write(t, 14, 9); //23 b.Write(t, 1, 23); //24 b.Write(t, 5, 24); //29 - b.Write(t, 3, 29); //32 + b.Write(t, 3, 29); //32 } template <typename TBo> @@ -213,7 +213,7 @@ private: DoRead(in, v); UNIT_ASSERT_VALUES_EQUAL_C(v, 1637415112ul, (rem + ": " + NBitIO::PrintBits(v))); DoRead(in, v); - UNIT_ASSERT_VALUES_EQUAL_C(v, 897998715u, (rem + ": " + NBitIO::PrintBits(v))); + UNIT_ASSERT_VALUES_EQUAL_C(v, 897998715u, (rem + ": " + NBitIO::PrintBits(v))); DoRead(in, v); UNIT_ASSERT_VALUES_EQUAL_C(v, 201416527u, (rem + ": " + NBitIO::PrintBits(v))); DoRead(in, v); |