aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/ascii_ut.cpp
diff options
context:
space:
mode:
authormvel <mvel@yandex-team.ru>2022-02-10 16:45:41 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:41 +0300
commitbd30392c4cc92487950adc375c07adf52da1d592 (patch)
treee8d1a3f19b7fc890bcef6e4cc5de41f1d88c9ac3 /util/string/ascii_ut.cpp
parent5d50718e66d9c037dc587a0211110b7d25a66185 (diff)
downloadydb-bd30392c4cc92487950adc375c07adf52da1d592.tar.gz
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/ascii_ut.cpp')
-rw-r--r--util/string/ascii_ut.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/util/string/ascii_ut.cpp b/util/string/ascii_ut.cpp
index 89069fee50..41732f6f4e 100644
--- a/util/string/ascii_ut.cpp
+++ b/util/string/ascii_ut.cpp
@@ -61,14 +61,14 @@ Y_UNIT_TEST_SUITE(TAsciiTest) {
UNIT_ASSERT(!IsAsciiPunct(i));
}
}
-
+
Y_UNIT_TEST(CompareTest) {
- UNIT_ASSERT(AsciiEqualsIgnoreCase("qqq", "qQq"));
+ UNIT_ASSERT(AsciiEqualsIgnoreCase("qqq", "qQq"));
UNIT_ASSERT(AsciiEqualsIgnoreCase("qqq", TStringBuf("qQq")));
TString qq = "qq";
TString qQ = "qQ";
- UNIT_ASSERT(AsciiEqualsIgnoreCase(qq, qQ));
-
+ UNIT_ASSERT(AsciiEqualsIgnoreCase(qq, qQ));
+
TString x = "qqqA";
TString y = "qQqB";
TString z = "qQnB";
@@ -77,13 +77,13 @@ Y_UNIT_TEST_SUITE(TAsciiTest) {
TStringBuf xs = TStringBuf(x.data(), 3);
TStringBuf ys = TStringBuf(y.data(), 3);
TStringBuf zs = TStringBuf(z.data(), 3);
- UNIT_ASSERT(AsciiCompareIgnoreCase(xs, ys) == 0);
- UNIT_ASSERT(AsciiCompareIgnoreCase(xs, zs) > 0);
- UNIT_ASSERT(AsciiCompareIgnoreCase(xs, zz) < 0);
- UNIT_ASSERT(AsciiCompareIgnoreCase(zzz, zz) > 0);
-
- UNIT_ASSERT(AsciiCompareIgnoreCase("qqQ", "qq") > 0);
- UNIT_ASSERT(AsciiCompareIgnoreCase("qq", "qq") == 0);
+ UNIT_ASSERT(AsciiCompareIgnoreCase(xs, ys) == 0);
+ UNIT_ASSERT(AsciiCompareIgnoreCase(xs, zs) > 0);
+ UNIT_ASSERT(AsciiCompareIgnoreCase(xs, zz) < 0);
+ UNIT_ASSERT(AsciiCompareIgnoreCase(zzz, zz) > 0);
+
+ UNIT_ASSERT(AsciiCompareIgnoreCase("qqQ", "qq") > 0);
+ UNIT_ASSERT(AsciiCompareIgnoreCase("qq", "qq") == 0);
UNIT_ASSERT_EQUAL(AsciiHasPrefix("qweasd", "qwe"), true);
UNIT_ASSERT_EQUAL(AsciiHasPrefix("qweasd", "qWe"), false);
@@ -94,5 +94,5 @@ Y_UNIT_TEST_SUITE(TAsciiTest) {
UNIT_ASSERT_EQUAL(AsciiHasSuffixIgnoreCase("qweasd", "asD"), true);
UNIT_ASSERT_EQUAL(AsciiHasSuffixIgnoreCase("qweasd", "ast"), false);
- }
+ }
}