/**
* Tests for compoundWords.
*/
@Test
public final void testCompoundWords() {
Sentence sentence = ConversationParser.parse("take golden ring");
assertFalse(sentence.hasError());
assertEquals("take", sentence.getVerbString());
assertEquals("golden ring", sentence.getObjectName());
assertEquals("take golden ring", sentence.getNormalized());
assertEquals("take/VER golden ring/OBJ-COL", sentence.toString());
sentence = ConversationParser.parse("take ring golden");
assertFalse(sentence.hasError());
assertEquals("take", sentence.getVerbString());
assertEquals("ring", sentence.getObjectName());
assertEquals("take ring golden", sentence.getNormalized());
assertEquals("take/VER ring/OBJ golden/ADJ-COL", sentence.toString());
sentence = ConversationParser.parse("take lich gold key");
assertFalse(sentence.hasError());
assertEquals("take", sentence.getVerbString());
assertEquals("lich gold key", sentence.getObjectName());
assertEquals("take lich gold key", sentence.getNormalized());
assertEquals("take/VER lich gold key/OBJ", sentence.toString());
sentence = ConversationParser.parse("take dungeon silver key");
assertEquals("take/VER dungeon silver key/OBJ", sentence.toString());
assertEquals("dungeon silver key", sentence.getObjectName());
sentence = ConversationParser.parse("buy lion shield");
assertEquals("buy/VER lion shield/OBJ", sentence.toString());
assertEquals("lion shield", sentence.getObjectName());
sentence = ConversationParser.parse("buy wedding ring");
assertEquals("buy/VER wedding ring/OBJ", sentence.toString());
assertEquals("wedding ring", sentence.getObjectName());
sentence = ConversationParser.parse("buy engagement ring");
assertEquals("buy/VER engagement ring/OBJ", sentence.toString());
assertEquals("engagement ring", sentence.getObjectName());
sentence = ConversationParser.parse("buy enhanced lion shield");
assertEquals("buy/VER enhanced lion shield/OBJ", sentence.toString());
assertEquals("enhanced lion shield", sentence.getObjectName());
sentence = ConversationParser.parse("buy summon scroll");
assertEquals("buy/VER summon scroll/OBJ", sentence.toString());
assertEquals("buy", sentence.getVerbString());
assertEquals("summon scroll", sentence.getObjectName());
sentence = ConversationParser.parse("buy 1 summon scroll");
assertEquals("buy/VER summon scroll/OBJ", sentence.toString());
assertEquals("summon scroll", sentence.getObjectName());
}