diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:39 +0300 |
commit | a6a92afe03e02795227d2641b49819b687f088f8 (patch) | |
tree | f6984a1d27d5a7ec88a6fdd6e20cd5b7693b6ece /util/generic/string_ut.cpp | |
parent | c6dc8b8bd530985bc4cce0137e9a5de32f1087cb (diff) | |
download | ydb-a6a92afe03e02795227d2641b49819b687f088f8.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/string_ut.cpp')
-rw-r--r-- | util/generic/string_ut.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/string_ut.cpp b/util/generic/string_ut.cpp index ac82e9091db..0d47f2d0221 100644 --- a/util/generic/string_ut.cpp +++ b/util/generic/string_ut.cpp @@ -107,7 +107,7 @@ protected: // Non-shared behaviour - never shrink s.reserve(256); - #ifndef TSTRING_IS_STD_STRING + #ifndef TSTRING_IS_STD_STRING const auto* data = s.data(); UNIT_ASSERT(s.capacity() >= 256); @@ -115,18 +115,18 @@ protected: s.reserve(128); UNIT_ASSERT(s.capacity() >= 256 && s.data() == data); - #endif + #endif s.resize(64, 'x'); s.reserve(10); - #ifdef TSTRING_IS_STD_STRING + #ifdef TSTRING_IS_STD_STRING UNIT_ASSERT(s.capacity() >= 64); - #else + #else UNIT_ASSERT(s.capacity() >= 256 && s.data() == data); - #endif + #endif - #ifndef TSTRING_IS_STD_STRING + #ifndef TSTRING_IS_STD_STRING // Shared behaviour - always reallocate, just as much as requisted TStringType holder = s; @@ -146,7 +146,7 @@ protected: UNIT_ASSERT(s.capacity() >= 64 && s.capacity() < 128 && s.data() != data); UNIT_ASSERT(s.IsDetached()); - #endif + #endif #endif } |