diff options
author | mvel <mvel@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
commit | 43f5a35593ebc9f6bcea619bb170394ea7ae468e (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /util/string/ascii_ut.cpp | |
parent | bd30392c4cc92487950adc375c07adf52da1d592 (diff) | |
download | ydb-43f5a35593ebc9f6bcea619bb170394ea7ae468e.tar.gz |
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/ascii_ut.cpp')
-rw-r--r-- | util/string/ascii_ut.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/string/ascii_ut.cpp b/util/string/ascii_ut.cpp index 41732f6f4e..89069fee50 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); - } + } } |