Esempio n. 1
0
        public void NextNNonTerminal()
        {
            AbstractVFState state = Create(5, 10);

            state.size  = 2;
            state.m1[0] = 1;
            state.m1[1] = 0;
            Assert.AreEqual(2, state.NextN(-1));
        }
Esempio n. 2
0
        public void NextNTerminal()
        {
            AbstractVFState state = Create(5, 10);

            state.size  = 2;
            state.m1[0] = 1;
            state.m1[1] = 0;
            state.t1[4] = 1; // <- first terminal
            Assert.AreEqual(4, state.NextN(-1));
        }
Esempio n. 3
0
        public void NextNAt0()
        {
            AbstractVFState state = Create(5, 10);

            Assert.AreEqual(0, state.NextN(-1));
        }