defaultTest(9);
}
private void defaultTest(int num) throws IOException{
Grammar g = new Parser(DIR + "test_epsilons" + num + ".txt").parse();
new EpsilonProductionRemover().removeEpsilonProductions(g, "S");
compareIgnoreNewlines(g.toString(), DIR + "test_epsilons" + num + "_expected.txt");
Set<GrammarProduction> epsilonProductions = EpsilonProductionRemover.getEpsilonProductions(g, g.getNonterminal("S"));
assertTrue(epsilonProductions.isEmpty());
}