aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/strip_ut.cpp
diff options
context:
space:
mode:
authorvkap <vkap@yandex-team.ru>2022-02-10 16:52:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:03 +0300
commit8adaf54035169f30420bfba09aad86a04c0ab068 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/string/strip_ut.cpp
parent2293cfbde84d06fd05df2d8b5e84a0f58c6b827e (diff)
downloadydb-8adaf54035169f30420bfba09aad86a04c0ab068.tar.gz
Restoring authorship annotation for <vkap@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/strip_ut.cpp')
-rw-r--r--util/string/strip_ut.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/string/strip_ut.cpp b/util/string/strip_ut.cpp
index bfc3c7c80a..d1029d1498 100644
--- a/util/string/strip_ut.cpp
+++ b/util/string/strip_ut.cpp
@@ -46,8 +46,8 @@ Y_UNIT_TEST_SUITE(TStripStringTest) {
Y_UNIT_TEST(TestCustomStrip) {
struct TTest {
- const char* Str;
- const char* Result;
+ const char* Str;
+ const char* Result;
};
static const TTest tests[] = {
{"//012//", "012"},
@@ -55,14 +55,14 @@ Y_UNIT_TEST_SUITE(TStripStringTest) {
{"012", "012"},
{"012//", "012"},
};
-
+
for (auto test : tests) {
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
StripString(TString(test.Str), EqualsStripAdapter('/')),
test.Result);
- };
- }
-
+ };
+ }
+
Y_UNIT_TEST(TestCustomStripLeftRight) {
struct TTest {
const char* Str;
@@ -88,11 +88,11 @@ Y_UNIT_TEST_SUITE(TStripStringTest) {
Y_UNIT_TEST(TestNullStringStrip) {
TStringBuf nullString(nullptr, nullptr);
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
StripString(nullString),
TString());
- }
-
+ }
+
Y_UNIT_TEST(TestWtrokaStrip) {
UNIT_ASSERT_EQUAL(StripString(TWtringBuf(u" abc ")), u"abc");
UNIT_ASSERT_EQUAL(StripStringLeft(TWtringBuf(u" abc ")), u"abc ");
@@ -100,13 +100,13 @@ Y_UNIT_TEST_SUITE(TStripStringTest) {
}
Y_UNIT_TEST(TestWtrokaCustomStrip) {
- UNIT_ASSERT_EQUAL(
+ UNIT_ASSERT_EQUAL(
StripString(
TWtringBuf(u"/abc/"),
EqualsStripAdapter(u'/')),
u"abc");
- }
-
+ }
+
Y_UNIT_TEST(TestCollapse) {
TString s;
Collapse(TString(" 123 456 "), s);