Exemple #1
0
        public void Test_Found()
        {
            NFARegularExpressionSearch nfa = new NFARegularExpressionSearch("(1000((10)*)1000)");

            Assert.True(nfa.Match("10001010101000"));
        }
Exemple #2
0
        public void Test_NotFound()
        {
            NFARegularExpressionSearch nfa = new NFARegularExpressionSearch("(1000((10)*))");

            Assert.False(nfa.Match("ASD"));
        }