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); }
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); }