aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/string_ut.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/generic/string_ut.h
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/string_ut.h')
-rw-r--r--util/generic/string_ut.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/util/generic/string_ut.h b/util/generic/string_ut.h
index cd9db7876b..44bb10bdeb 100644
--- a/util/generic/string_ut.h
+++ b/util/generic/string_ut.h
@@ -981,21 +981,21 @@ public:
void TestPrefixSuffix() {
const TStringType emptyStr;
- UNIT_ASSERT_EQUAL(emptyStr.StartsWith('x'), false);
- UNIT_ASSERT_EQUAL(emptyStr.EndsWith('x'), false);
- UNIT_ASSERT_EQUAL(emptyStr.StartsWith(0), false);
- UNIT_ASSERT_EQUAL(emptyStr.EndsWith(0), false);
- UNIT_ASSERT_EQUAL(emptyStr.StartsWith(emptyStr), true);
- UNIT_ASSERT_EQUAL(emptyStr.EndsWith(emptyStr), true);
+ UNIT_ASSERT_EQUAL(emptyStr.StartsWith('x'), false);
+ UNIT_ASSERT_EQUAL(emptyStr.EndsWith('x'), false);
+ UNIT_ASSERT_EQUAL(emptyStr.StartsWith(0), false);
+ UNIT_ASSERT_EQUAL(emptyStr.EndsWith(0), false);
+ UNIT_ASSERT_EQUAL(emptyStr.StartsWith(emptyStr), true);
+ UNIT_ASSERT_EQUAL(emptyStr.EndsWith(emptyStr), true);
const char_type chars[] = {'h', 'e', 'l', 'l', 'o', 0};
const TStringType str(chars);
- UNIT_ASSERT_EQUAL(str.StartsWith('h'), true);
- UNIT_ASSERT_EQUAL(str.StartsWith('o'), false);
- UNIT_ASSERT_EQUAL(str.EndsWith('o'), true);
- UNIT_ASSERT_EQUAL(str.EndsWith('h'), false);
- UNIT_ASSERT_EQUAL(str.StartsWith(emptyStr), true);
- UNIT_ASSERT_EQUAL(str.EndsWith(emptyStr), true);
+ UNIT_ASSERT_EQUAL(str.StartsWith('h'), true);
+ UNIT_ASSERT_EQUAL(str.StartsWith('o'), false);
+ UNIT_ASSERT_EQUAL(str.EndsWith('o'), true);
+ UNIT_ASSERT_EQUAL(str.EndsWith('h'), false);
+ UNIT_ASSERT_EQUAL(str.StartsWith(emptyStr), true);
+ UNIT_ASSERT_EQUAL(str.EndsWith(emptyStr), true);
}
#ifndef TSTRING_IS_STD_STRING