Merge remote-tracking branch 'origin/Endabgabe' into Endabgabe
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
Purplumbi504 2024-07-04 23:41:17 +02:00
commit 97aadb9ba8
3 changed files with 10 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class Main {
}
else {
try {
CharStream codeCharStream = CharStreams.fromPath(Paths.get("src/test/resources/input/endabgabeTests/Person.java"));
CharStream codeCharStream = CharStreams.fromPath(Paths.get("src/test/resources/input/endabgabeTests/working/Loops.java"));
compileFile(codeCharStream, "src/test/resources/input/endabgabeTests");
} catch (IOException e) {
System.err.println("Error reading the file: " + e.getMessage());

View File

@ -1,5 +1,6 @@
public class Main {
public static void main(String[] args) {
Person testPerson = new Person(5);
Loops loop = new Loops();
System.out.println(loop.For(6));
}
}

View File

@ -14,4 +14,11 @@ public class Loops {
}
return count;
}
public int For(int a) {
for(int i = 0; i < a; i++) {
}
return i + 2;
}
}