aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/strbuf_ut.cpp
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.ru>2022-02-10 16:46:31 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:31 +0300
commit317da38588b7898a99fd9168571408123350012b (patch)
tree25eebc31526019ad39a6c1b13f492963d97ba439 /util/generic/strbuf_ut.cpp
parent3b2241461d41d41ba1a706b0750c4f0f55c344f6 (diff)
downloadydb-317da38588b7898a99fd9168571408123350012b.tar.gz
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/strbuf_ut.cpp')
-rw-r--r--util/generic/strbuf_ut.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/util/generic/strbuf_ut.cpp b/util/generic/strbuf_ut.cpp
index 69cde785af..fa4ea1f57e 100644
--- a/util/generic/strbuf_ut.cpp
+++ b/util/generic/strbuf_ut.cpp
@@ -20,11 +20,11 @@ Y_UNIT_TEST_SUITE(TStrBufTest) {
std::string_view helloWorld("Hello, World!");
TStringBuf fromStringView(helloWorld);
UNIT_ASSERT_EQUAL(fromStringView.data(), helloWorld.data());
- UNIT_ASSERT_EQUAL(fromStringView.size(), helloWorld.size());
+ UNIT_ASSERT_EQUAL(fromStringView.size(), helloWorld.size());
std::string_view fromStringBuf = fromStringView;
UNIT_ASSERT_EQUAL(helloWorld.data(), fromStringBuf.data());
- UNIT_ASSERT_EQUAL(helloWorld.size(), fromStringBuf.size());
+ UNIT_ASSERT_EQUAL(helloWorld.size(), fromStringBuf.size());
}
Y_UNIT_TEST(TestConstExpr) {
@@ -37,16 +37,16 @@ Y_UNIT_TEST_SUITE(TStrBufTest) {
UNIT_ASSERT_VALUES_EQUAL(str1, str2);
UNIT_ASSERT_VALUES_EQUAL(str2, str3);
UNIT_ASSERT_VALUES_EQUAL(str1, str3);
-
- static constexpr std::string_view view1(str1);
- UNIT_ASSERT_VALUES_EQUAL(str1, view1);
- static_assert(str1.data() == view1.data());
- static_assert(str1.size() == view1.size());
-
- static constexpr TStringBuf str4(view1);
- UNIT_ASSERT_VALUES_EQUAL(str1, str4);
- static_assert(str1.data() == str4.data());
- static_assert(str1.size() == str4.size());
+
+ static constexpr std::string_view view1(str1);
+ UNIT_ASSERT_VALUES_EQUAL(str1, view1);
+ static_assert(str1.data() == view1.data());
+ static_assert(str1.size() == view1.size());
+
+ static constexpr TStringBuf str4(view1);
+ UNIT_ASSERT_VALUES_EQUAL(str1, str4);
+ static_assert(str1.data() == str4.data());
+ static_assert(str1.size() == str4.size());
}
Y_UNIT_TEST(TestAfter) {