aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/crc32c/crc32c_ut.cpp
diff options
context:
space:
mode:
authorsobols <sobols@yandex-team.ru>2022-02-10 16:47:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:08 +0300
commit09961b69c61f471ddd594e0fd877df62a8021562 (patch)
tree54a7b60a9526a7104557a033eb0a8d70d64b604c /library/cpp/digest/crc32c/crc32c_ut.cpp
parent4ce8835206f981afa4a61915a49a21fb750416ec (diff)
downloadydb-09961b69c61f471ddd594e0fd877df62a8021562.tar.gz
Restoring authorship annotation for <sobols@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/digest/crc32c/crc32c_ut.cpp')
-rw-r--r--library/cpp/digest/crc32c/crc32c_ut.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/digest/crc32c/crc32c_ut.cpp b/library/cpp/digest/crc32c/crc32c_ut.cpp
index aa31b83422..02d4c12fec 100644
--- a/library/cpp/digest/crc32c/crc32c_ut.cpp
+++ b/library/cpp/digest/crc32c/crc32c_ut.cpp
@@ -8,15 +8,15 @@ Y_UNIT_TEST_SUITE(TestCrc32c) {
}
Y_UNIT_TEST(TestUnaligned) {
- const TString str(1000, 'a');
- for (size_t substrLen = 0; substrLen <= str.length(); ++substrLen) {
- const ui32 crc = Crc32c(str.data(), substrLen);
- for (size_t offset = 1; offset + substrLen <= str.length(); ++offset) {
- UNIT_ASSERT_VALUES_EQUAL(Crc32c(str.data() + offset, substrLen), crc);
- }
- }
- }
-
+ const TString str(1000, 'a');
+ for (size_t substrLen = 0; substrLen <= str.length(); ++substrLen) {
+ const ui32 crc = Crc32c(str.data(), substrLen);
+ for (size_t offset = 1; offset + substrLen <= str.length(); ++offset) {
+ UNIT_ASSERT_VALUES_EQUAL(Crc32c(str.data() + offset, substrLen), crc);
+ }
+ }
+ }
+
Y_UNIT_TEST(TestExtend) {
UNIT_ASSERT_VALUES_EQUAL(Crc32cExtend(1, "abc", 3), ui32(2466950601));
}