Release v3.4

Updated test suite
This commit is contained in:
Koen Yskout
2018-05-08 09:41:13 +02:00
parent 492299b18d
commit cc27abd957
2 changed files with 231 additions and 143 deletions

View File

@@ -17,6 +17,7 @@ import worms.programs.IProgramFactory;
import worms.programs.internal.parser.ParserVisitor;
import worms.programs.internal.parser.generated.WormsProgramLexer;
import worms.programs.internal.parser.generated.WormsProgramParser;
import worms.util.MustNotImplementException;
import worms.internal.gui.GUIUtils;
import worms.model.Program;
@@ -157,6 +158,8 @@ public class ProgramParser<E, S, P, Prg> {
}
errors.add("Factory did not return a Program object");
}
} catch (MustNotImplementException e) {
errors.add(e.toString());
} catch (Exception e) {
e.printStackTrace();
errors.add(e.toString());