aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornightnord <nightnord@yandex-team.ru>2022-02-10 16:48:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:48 +0300
commited53f7a6b6edb5c350a8bbce34265b40a436ff64 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parent5423b8524031e92d72b6151c5ad8bdf9b0b01bdc (diff)
downloadydb-ed53f7a6b6edb5c350a8bbce34265b40a436ff64.tar.gz
Restoring authorship annotation for <nightnord@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--contrib/python/ya.make2
-rw-r--r--util/generic/string_ut.cpp66
2 files changed, 34 insertions, 34 deletions
diff --git a/contrib/python/ya.make b/contrib/python/ya.make
index a66e09c702..d01ced9f3a 100644
--- a/contrib/python/ya.make
+++ b/contrib/python/ya.make
@@ -722,7 +722,7 @@ RECURSE(
path.py
pathlib2
pathspec
- pathtools
+ pathtools
pathy
patsy
paypalrestsdk
diff --git a/util/generic/string_ut.cpp b/util/generic/string_ut.cpp
index 8216742536..ac82e9091d 100644
--- a/util/generic/string_ut.cpp
+++ b/util/generic/string_ut.cpp
@@ -103,48 +103,48 @@ protected:
//Expected exception is length_error:
UNIT_ASSERT(false);
}
-
- // Non-shared behaviour - never shrink
-
- s.reserve(256);
+
+ // Non-shared behaviour - never shrink
+
+ s.reserve(256);
#ifndef TSTRING_IS_STD_STRING
- const auto* data = s.data();
-
- UNIT_ASSERT(s.capacity() >= 256);
-
- s.reserve(128);
-
- UNIT_ASSERT(s.capacity() >= 256 && s.data() == data);
+ const auto* data = s.data();
+
+ UNIT_ASSERT(s.capacity() >= 256);
+
+ s.reserve(128);
+
+ UNIT_ASSERT(s.capacity() >= 256 && s.data() == data);
#endif
-
- s.resize(64, 'x');
- s.reserve(10);
-
+
+ s.resize(64, 'x');
+ s.reserve(10);
+
#ifdef TSTRING_IS_STD_STRING
UNIT_ASSERT(s.capacity() >= 64);
#else
- UNIT_ASSERT(s.capacity() >= 256 && s.data() == data);
+ UNIT_ASSERT(s.capacity() >= 256 && s.data() == data);
#endif
-
+
#ifndef TSTRING_IS_STD_STRING
- // Shared behaviour - always reallocate, just as much as requisted
-
+ // Shared behaviour - always reallocate, just as much as requisted
+
TStringType holder = s;
-
- UNIT_ASSERT(s.capacity() >= 256);
-
- s.reserve(128);
-
- UNIT_ASSERT(s.capacity() >= 128 && s.capacity() < 256 && s.data() != data);
+
+ UNIT_ASSERT(s.capacity() >= 256);
+
+ s.reserve(128);
+
+ UNIT_ASSERT(s.capacity() >= 128 && s.capacity() < 256 && s.data() != data);
UNIT_ASSERT(s.IsDetached());
-
- s.resize(64, 'x');
- data = s.data();
- holder = s;
-
- s.reserve(10);
-
- UNIT_ASSERT(s.capacity() >= 64 && s.capacity() < 128 && s.data() != data);
+
+ s.resize(64, 'x');
+ data = s.data();
+ holder = s;
+
+ s.reserve(10);
+
+ UNIT_ASSERT(s.capacity() >= 64 && s.capacity() < 128 && s.data() != data);
UNIT_ASSERT(s.IsDetached());
#endif
#endif