Examples of evaluateSentenceType()


Examples of games.stendhal.common.parser.SentenceImplementation.evaluateSentenceType()

    parser = new ConversationParser(sentence);
    sentence.parse(parser);
    sentence.classifyWords(parser);
    assertFalse(sentence.hasError());
    assertEquals("do/VER it/OBJ-PRO fit/VER", sentence.toString());
    assertEquals(Sentence.SentenceType.QUESTION, sentence.evaluateSentenceType());
    assertEquals("it/OBJ-PRO fit/VER?", sentence.toString());
  }

  /**
   * Tests for sentenceType.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.