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

testPredicate() private method

private testPredicate ( ) : void
return void
        public void testPredicate()
        {
            lexer.setInput(" HasColor(r)");
            Assert.AreEqual(new Token((int)LogicTokenTypes.PREDICATE, "HasColor"),
                    lexer.nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.LPAREN, "("), lexer
                    .nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.VARIABLE, "r"), lexer
                    .nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.RPAREN, ")"), lexer
                    .nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.EOI, "EOI"), lexer
                    .nextToken());
        }