diff options
author | Pacien TRAN-GIRARD | 2014-03-16 14:25:54 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-03-16 14:25:54 +0100 |
commit | 8c2419747a732efa6f56135cfc1690813b608ab0 (patch) | |
tree | 6e6860aa4913910e0b48a5ea4becd016c41493f5 /src | |
parent | e5d50088a38732c1901263b4fb366dc5f51d4495 (diff) | |
download | esieequest-8c2419747a732efa6f56135cfc1690813b608ab0.tar.gz |
Handle comments in test files
Diffstat (limited to 'src')
-rw-r--r-- | src/esieequest/view/text/FileReader.java | 4 |
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) { |