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/pcre | |
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/pcre')
-rw-r--r-- | library/cpp/regex/pcre/regexp_ut.cpp | 16 |
1 files changed, 8 insertions, 8 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); |