Esempio n. 1
0
        public void Matches(string pattern, string target, IEnumerable <int> indexes)
        {
            var kmp = KMP.Create(pattern);

            kmp.Matches(target).ToList().Should().Equal(indexes);
        }