aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/string_ut.h
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit7fe839092527589b38f014d854c51565b3c1adfa (patch)
tree309e97022d3530044b712b8f71318c78faf7856e /util/generic/string_ut.h
parentd0d68c395c10da4cb56a1c845504570a04d7893e (diff)
downloadydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/string_ut.h')
-rw-r--r--util/generic/string_ut.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/generic/string_ut.h b/util/generic/string_ut.h
index 44bb10bdebe..4bd0e376c18 100644
--- a/util/generic/string_ut.h
+++ b/util/generic/string_ut.h
@@ -517,13 +517,13 @@ protected:
TTestData Data;
public:
- void TestMaxSize() {
+ void TestMaxSize() {
const size_t badMaxVal = TStringType{}.max_size() + 1;
-
- TStringType s;
- UNIT_CHECK_GENERATED_EXCEPTION(s.reserve(badMaxVal), std::length_error);
- }
-
+
+ TStringType s;
+ UNIT_CHECK_GENERATED_EXCEPTION(s.reserve(badMaxVal), std::length_error);
+ }
+
void TestConstructors() {
TStringType s0(nullptr);
UNIT_ASSERT(s0.size() == 0);