summaryrefslogtreecommitdiffstats
path: root/library/cpp/deprecated/kmp/kmp_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <[email protected]>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/deprecated/kmp/kmp_ut.cpp
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
Restoring authorship annotation for Vlad Yaroslavlev <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/deprecated/kmp/kmp_ut.cpp')
-rw-r--r--library/cpp/deprecated/kmp/kmp_ut.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/deprecated/kmp/kmp_ut.cpp b/library/cpp/deprecated/kmp/kmp_ut.cpp
index 04e7cf27015..c2eda83c57a 100644
--- a/library/cpp/deprecated/kmp/kmp_ut.cpp
+++ b/library/cpp/deprecated/kmp/kmp_ut.cpp
@@ -4,8 +4,8 @@
#include <util/stream/output.h>
-static TVector<int> FindAll(const TString& pattern, const TString& string) {
- TVector<int> result;
+static TVector<int> FindAll(const TString& pattern, const TString& string) {
+ TVector<int> result;
TKMPMatcher kmp(pattern);
const char* pResult;
const char* begin = string.begin();
@@ -25,7 +25,7 @@ class TTestKMP: public TTestBase {
public:
void Test() {
- TVector<int> ans = {0, 2};
+ TVector<int> ans = {0, 2};
UNIT_ASSERT_EQUAL(FindAll("a", "aba"), ans);
ans = {0};
UNIT_ASSERT_EQUAL(FindAll("aba", "aba"), ans);