From a0e55d7b27bac1002fd030f6b071faa5326e80bb Mon Sep 17 00:00:00 2001 From: Lucas <89882946+notbad3500@users.noreply.github.com> Date: Fri, 31 May 2024 10:00:46 +0200 Subject: [PATCH] first testrun of the day --- src/main/test/java/MainTest.java | 2 +- src/main/test/resources/CompilerInput.txt | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/main/test/resources/CompilerInput.txt diff --git a/src/main/test/java/MainTest.java b/src/main/test/java/MainTest.java index f9e848e..516ab6e 100644 --- a/src/main/test/java/MainTest.java +++ b/src/main/test/java/MainTest.java @@ -21,7 +21,7 @@ public class MainTest { void testEmptyClass() { CharStream codeCharStream = null; try { - codeCharStream = CharStreams.fromPath(Paths.get("src/main/test/resources/EmptyClassExample.java")); + codeCharStream = CharStreams.fromPath(Paths.get("src/main/test/resources/CompilerInput.txt")); Main.parsefile(codeCharStream); } catch (IOException e) { System.err.println("Error reading the file: " + e.getMessage()); diff --git a/src/main/test/resources/CompilerInput.txt b/src/main/test/resources/CompilerInput.txt new file mode 100644 index 0000000..918c686 --- /dev/null +++ b/src/main/test/resources/CompilerInput.txt @@ -0,0 +1,13 @@ +public class Example { + + public int testVar; + + public static int testMethod(char b){ + + int a; + int a; + + + } + +} \ No newline at end of file