Package aima.core.logic.propositional.parsing.ast

Examples of aima.core.logic.propositional.parsing.ast.AtomicSentence


    parser = new PEParser();
  }

  @Test
  public void testAtomicSentenceTrueParse() {
    AtomicSentence sen = (AtomicSentence) parser.parse("true");
    Assert.assertEquals(TrueSentence.class, sen.getClass());
    sen = (AtomicSentence) parser.parse("(true)");
    Assert.assertEquals(TrueSentence.class, sen.getClass());
    sen = (AtomicSentence) parser.parse("((true))");
    Assert.assertEquals(TrueSentence.class, sen.getClass());
  }
View Full Code Here


    Assert.assertEquals(TrueSentence.class, sen.getClass());
  }

  @Test
  public void testAtomicSentenceFalseParse() {
    AtomicSentence sen = (AtomicSentence) parser.parse("faLse");
    Assert.assertEquals(FalseSentence.class, sen.getClass());
  }
View Full Code Here

    Assert.assertEquals(FalseSentence.class, sen.getClass());
  }

  @Test
  public void testAtomicSentenceSymbolParse() {
    AtomicSentence sen = (AtomicSentence) parser.parse("AIMA");
    Assert.assertEquals(Symbol.class, sen.getClass());
  }
View Full Code Here

TOP

Related Classes of aima.core.logic.propositional.parsing.ast.AtomicSentence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.