AIMA.Test.Core.Unit.Logic.FOL.Parsing.FOLLexerTest.testFunctions C# (CSharp) Method

testFunctions() private method

private testFunctions ( ) : void
return void
        public void testFunctions()
        {
            lexer.setInput(" LeftLeg(q)");
            Assert.AreEqual(new Token((int)LogicTokenTypes.FUNCTION, "LeftLeg"),
                    lexer.nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.LPAREN, "("), lexer
                    .nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.VARIABLE, "q"), lexer
                    .nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.RPAREN, ")"), lexer
                    .nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.EOI, "EOI"), lexer
                    .nextToken());
        }