Пример #1
0
            public void ShouldReturn6WithNeededAndPointerOf5()
            {
                var result = BoyerMooreAlgorithm.SuffixLength("needed", 5);

                Assert.AreEqual(6, result);
            }
Пример #2
0
            public void ShouldReturn0WithTreeAndPointerOf4()
            {
                var result = BoyerMooreAlgorithm.SuffixLength("tree", 4);

                Assert.AreEqual(0, result);
            }