aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-03-16 14:25:54 +0100
committerPacien TRAN-GIRARD2014-03-16 14:25:54 +0100
commit8c2419747a732efa6f56135cfc1690813b608ab0 (patch)
tree6e6860aa4913910e0b48a5ea4becd016c41493f5
parente5d50088a38732c1901263b4fb366dc5f51d4495 (diff)
downloadesieequest-8c2419747a732efa6f56135cfc1690813b608ab0.tar.gz
Handle comments in test files
-rw-r--r--src/esieequest/view/text/FileReader.java4
1 files changed, 3 insertions, 1 deletions
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 {
34 while (this.running && scanner.hasNextLine()) { 34 while (this.running && scanner.hasNextLine()) {
35 String line = scanner.nextLine(); 35 String line = scanner.nextLine();
36 System.out.println("> " + line); 36 System.out.println("> " + line);
37 this.gameEngine.interpret(line); 37 if (!line.startsWith("//")) {
38 this.gameEngine.interpret(line);
39 }
38 } 40 }
39 scanner.close(); 41 scanner.close();
40 } catch (FileNotFoundException exception) { 42 } catch (FileNotFoundException exception) {