Пример #1
0
            public void ShouldReturn1WithAbadAndA()
            {
                var result = BoyerMooreAlgorithm.MakeCharTable("abad");

                Assert.AreEqual(1, result['a']);
            }
Пример #2
0
            public void ShouldReturn4WithAbcdAndE()
            {
                var result = BoyerMooreAlgorithm.MakeCharTable("abcd");

                Assert.AreEqual(4, result['e']);
            }