aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/sfh/sfh_ut.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/digest/sfh/sfh_ut.cpp
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/digest/sfh/sfh_ut.cpp')
-rw-r--r--library/cpp/digest/sfh/sfh_ut.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/library/cpp/digest/sfh/sfh_ut.cpp b/library/cpp/digest/sfh/sfh_ut.cpp
index 912999bae7..79606232de 100644
--- a/library/cpp/digest/sfh/sfh_ut.cpp
+++ b/library/cpp/digest/sfh/sfh_ut.cpp
@@ -1,40 +1,40 @@
-#include "sfh.h"
-
+#include "sfh.h"
+
#include <library/cpp/testing/unittest/registar.h>
-
+
#include <util/stream/output.h>
-
-class TSfhTest: public TTestBase {
- UNIT_TEST_SUITE(TSfhTest);
- UNIT_TEST(TestSfh)
- UNIT_TEST_SUITE_END();
-
-private:
- inline void TestSfh() {
- ui8 buf[256];
-
- for (size_t i = 0; i < 256; ++i) {
- buf[i] = i;
- }
-
- Test(buf, 256, 3840866583UL);
- Test(buf, 255, 325350515UL);
- Test(buf, 254, 2920741773UL);
- Test(buf, 253, 3586628615UL);
- }
-
-private:
- inline void Test(const void* data, size_t len, ui32 expected) {
- const ui32 res = SuperFastHash(data, len);
-
- try {
- UNIT_ASSERT_EQUAL(res, expected);
- } catch (...) {
- Cerr << res << ", " << expected << Endl;
-
- throw;
- }
- }
-};
-
-UNIT_TEST_SUITE_REGISTRATION(TSfhTest);
+
+class TSfhTest: public TTestBase {
+ UNIT_TEST_SUITE(TSfhTest);
+ UNIT_TEST(TestSfh)
+ UNIT_TEST_SUITE_END();
+
+private:
+ inline void TestSfh() {
+ ui8 buf[256];
+
+ for (size_t i = 0; i < 256; ++i) {
+ buf[i] = i;
+ }
+
+ Test(buf, 256, 3840866583UL);
+ Test(buf, 255, 325350515UL);
+ Test(buf, 254, 2920741773UL);
+ Test(buf, 253, 3586628615UL);
+ }
+
+private:
+ inline void Test(const void* data, size_t len, ui32 expected) {
+ const ui32 res = SuperFastHash(data, len);
+
+ try {
+ UNIT_ASSERT_EQUAL(res, expected);
+ } catch (...) {
+ Cerr << res << ", " << expected << Endl;
+
+ throw;
+ }
+ }
+};
+
+UNIT_TEST_SUITE_REGISTRATION(TSfhTest);