Exemplo n.º 1
0
        public void BruteForceStringMatchTest2()
        {
            string text    = "primarila primarilb primarilc primarild primarile primarilf primarilag primarilh primarilj";
            string pattern = "primarily";

            Assert.Equal(-1, BruteForceStringMatch.Match(text, pattern));
        }
Exemplo n.º 2
0
        public void BruteForceStringMatchTest()
        {
            string text    = "The first computers were used primarily for numerical calculations";
            string pattern = "primarily";

            Assert.Equal(30, BruteForceStringMatch.Match(text, pattern));
        }