AIMA.Test.Core.Unit.Logic.FOL.Parsing.FOLLexerTest.testLexBasicExpression C# (CSharp) Méthode

testLexBasicExpression() private méthode

private testLexBasicExpression ( ) : void
Résultat void
        public void testLexBasicExpression()
        {
            lexer.setInput("( P )");
            Assert.AreEqual(new Token((int)LogicTokenTypes.LPAREN, "("), lexer
                    .nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.CONSTANT, "P"), lexer
                    .nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.RPAREN, ")"), lexer
                    .nextToken());
            Assert.AreEqual(new Token((int)LogicTokenTypes.EOI, "EOI"), lexer
                    .nextToken());
        }