diff options
author | diver <diver@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:07 +0300 |
commit | 7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786 (patch) | |
tree | c3371bfa47641a52244267b63009d16e4e7054ff /library/cpp/regex | |
parent | cc573d2716c99ba22afc98753971cd97fd5283e0 (diff) | |
download | ydb-7629e1f9ef7f9d2a3c345c97e6a4e5a4b32ee786.tar.gz |
Restoring authorship annotation for <diver@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/regex')
-rw-r--r-- | library/cpp/regex/pire/ut/regexp_ut.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/regex/pire/ut/regexp_ut.cpp b/library/cpp/regex/pire/ut/regexp_ut.cpp index e7206de9ad..651e986cef 100644 --- a/library/cpp/regex/pire/ut/regexp_ut.cpp +++ b/library/cpp/regex/pire/ut/regexp_ut.cpp @@ -141,21 +141,21 @@ Y_UNIT_TEST_SUITE(TRegExp) { } Y_UNIT_TEST(Capture6) { - TCapturingFsm fsm("(/to-match-with)"); - TSearcher searcher(fsm); - searcher.Search("/some/table/path/to-match-with"); - UNIT_ASSERT(searcher.Captured()); + TCapturingFsm fsm("(/to-match-with)"); + TSearcher searcher(fsm); + searcher.Search("/some/table/path/to-match-with"); + UNIT_ASSERT(searcher.Captured()); UNIT_ASSERT_VALUES_EQUAL(searcher.GetCaptured(), TStringBuf("/to-match-with")); - } - + } + Y_UNIT_TEST(Capture7) { - TCapturingFsm fsm("(pref.*suff)"); - TSearcher searcher(fsm); - searcher.Search("ala pref bla suff cla"); - UNIT_ASSERT(searcher.Captured()); + TCapturingFsm fsm("(pref.*suff)"); + TSearcher searcher(fsm); + searcher.Search("ala pref bla suff cla"); + UNIT_ASSERT(searcher.Captured()); //UNIT_ASSERT_VALUES_EQUAL(searcher.GetCaptured(), TStringBuf("pref bla suff")); - } - + } + Y_UNIT_TEST(CaptureXA) { TCapturingFsm fsm(".*(xa).*"); |