From 8c2419747a732efa6f56135cfc1690813b608ab0 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 16 Mar 2014 14:25:54 +0100 Subject: Handle comments in test files --- src/esieequest/view/text/FileReader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/esieequest/view/text/FileReader.java b/src/esieequest/view/text/FileReader.java index 0bf3d3d..f063a69 100644 --- a/src/esieequest/view/text/FileReader.java +++ b/src/esieequest/view/text/FileReader.java @@ -34,7 +34,9 @@ public class FileReader extends TextInterface { while (this.running && scanner.hasNextLine()) { String line = scanner.nextLine(); System.out.println("> " + line); - this.gameEngine.interpret(line); + if (!line.startsWith("//")) { + this.gameEngine.interpret(line); + } } scanner.close(); } catch (FileNotFoundException exception) { -- cgit v1.2.3