示例#1
0
        public void TestFiniteAutomata()
        {
            char[] pat = "AABAACAADAABAAABAA".ToCharArray();
            char[] txt = "AABA".ToCharArray();



            var actual   = finiteAutomata.Search(txt, pat);
            var expected = 3;

            Assert.Equal(expected, actual.Count);
        }