aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/zlib_ut.cpp
diff options
context:
space:
mode:
authormyltsev <myltsev@yandex-team.ru>2022-02-10 16:46:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:03 +0300
commit9166d66c30c23c9e85a7c88185a068987148d23f (patch)
tree421bdcec5755d9e441c485560aab5ab8d74c7475 /util/stream/zlib_ut.cpp
parent8d3a5ed3a188a34167eaee54f1691ce5c9edf2f3 (diff)
downloadydb-9166d66c30c23c9e85a7c88185a068987148d23f.tar.gz
Restoring authorship annotation for <myltsev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/zlib_ut.cpp')
-rw-r--r--util/stream/zlib_ut.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/stream/zlib_ut.cpp b/util/stream/zlib_ut.cpp
index 2290b4a9de..15f77f3ce4 100644
--- a/util/stream/zlib_ut.cpp
+++ b/util/stream/zlib_ut.cpp
@@ -75,21 +75,21 @@ Y_UNIT_TEST_SUITE(TZLibTest) {
}
}
- Y_UNIT_TEST(Dictionary) {
+ Y_UNIT_TEST(Dictionary) {
static constexpr TStringBuf data = "<html><body></body></html>";
static constexpr TStringBuf dict = "</<html><body>";
- for (auto type : {ZLib::Raw, ZLib::ZLib}) {
- TStringStream compressed;
- {
- TZLibCompress compressor(TZLibCompress::TParams(&compressed).SetDict(dict).SetType(type));
- compressor.Write(data);
- }
-
- TZLibDecompress decompressor(&compressed, type, ZLib::ZLIB_BUF_LEN, dict);
- UNIT_ASSERT_STRINGS_EQUAL(decompressor.ReadAll(), data);
- }
- }
-
+ for (auto type : {ZLib::Raw, ZLib::ZLib}) {
+ TStringStream compressed;
+ {
+ TZLibCompress compressor(TZLibCompress::TParams(&compressed).SetDict(dict).SetType(type));
+ compressor.Write(data);
+ }
+
+ TZLibDecompress decompressor(&compressed, type, ZLib::ZLIB_BUF_LEN, dict);
+ UNIT_ASSERT_STRINGS_EQUAL(decompressor.ReadAll(), data);
+ }
+ }
+
Y_UNIT_TEST(DecompressTwoStreams) {
// Check that Decompress(Compress(X) + Compress(Y)) == X + Y
TTempFile tmpFile(ZDATA);