import junit.framework.TestCase;


/*
 * This is file DefinitionsTest.java in project SentenceGenerator, created on Jan 15, 2007
 */

public class DefinitionsTest extends TestCase {
    Grammar g;
    protected void setUp() throws Exception {
        super.setUp();
        g = new Grammar();
        g.addRule("<np> ::= <n> | <adj> <n>");
    }

    public final void testToString() {
        assertEquals("<n> | <adj> <n>", g.getDefinitions("<np>").toString());
    }

}
