diff options
author | swarmer <swarmer@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
commit | 11a24635da4c4f39428b182c49a7bc35e47c9534 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/regex | |
parent | 317da38588b7898a99fd9168571408123350012b (diff) | |
download | ydb-11a24635da4c4f39428b182c49a7bc35e47c9534.tar.gz |
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/regex')
-rw-r--r-- | library/cpp/regex/pcre/regexp_ut.cpp | 16 | ||||
-rw-r--r-- | library/cpp/regex/pire/ut/regexp_ut.cpp | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/regex/pcre/regexp_ut.cpp b/library/cpp/regex/pcre/regexp_ut.cpp index 900d9587d8..5184e801cc 100644 --- a/library/cpp/regex/pcre/regexp_ut.cpp +++ b/library/cpp/regex/pcre/regexp_ut.cpp @@ -50,7 +50,7 @@ private: UNIT_TEST_SUITE(TRegexpTest); UNIT_TEST(TestRe) UNIT_TEST(TestSubst) - UNIT_TEST(TestOffEndOfBuffer); + UNIT_TEST(TestOffEndOfBuffer); UNIT_TEST_SUITE_END(); inline void TestRe() { @@ -91,13 +91,13 @@ private: UNIT_ASSERT_VALUES_EQUAL(copyResult, newResult); } } - - void TestOffEndOfBuffer() { - const TString needle{".*[^./]gov[.].*"}; - TRegExMatch re{needle, REG_UTF8}; - const TString haystack{"fakty.ictv.ua"}; - UNIT_ASSERT_VALUES_EQUAL(re.Match(haystack.c_str()), false); - } + + void TestOffEndOfBuffer() { + const TString needle{".*[^./]gov[.].*"}; + TRegExMatch re{needle, REG_UTF8}; + const TString haystack{"fakty.ictv.ua"}; + UNIT_ASSERT_VALUES_EQUAL(re.Match(haystack.c_str()), false); + } }; UNIT_TEST_SUITE_REGISTRATION(TRegexpTest); diff --git a/library/cpp/regex/pire/ut/regexp_ut.cpp b/library/cpp/regex/pire/ut/regexp_ut.cpp index b19c9a01f8..e7206de9ad 100644 --- a/library/cpp/regex/pire/ut/regexp_ut.cpp +++ b/library/cpp/regex/pire/ut/regexp_ut.cpp @@ -8,7 +8,7 @@ Y_UNIT_TEST_SUITE(TRegExp) { Y_UNIT_TEST(False) { UNIT_ASSERT(!TMatcher(TFsm::False()).Match("").Final()); - UNIT_ASSERT(!TMatcher(TFsm::False()).Match(TStringBuf{}).Final()); + UNIT_ASSERT(!TMatcher(TFsm::False()).Match(TStringBuf{}).Final()); } Y_UNIT_TEST(Surround) { |