Commit 9898a08b authored by uyunx's avatar uyunx 🎧 Committed by Paul Brinkmeier
Browse files

Add 3 valid and 3 invalid parser tests

parent 7f44cdbc
Pipeline #174615 failed with stage
in 5 minutes and 2 seconds
class CSytleArrays {
public int sum(int arr[], int length) {
int i = 0;
int sum = 0;
while (i < length) {
sum = sum + arr[i];
i = i + 1;
}
return sum;
}
public static void main(String args[]) {
}
}
class HelloWorld {
public static void main(String[] args) {
System.out.write(72);
System.out.write(101);
System.out.write(108);
System.out.write(108);
System.out.write(111);
System.out.write(32);
System.out.write(87);
System.out.write(111);
System.out.write(114);
System.out.write(108);
System.out.write(100);
System.out.write(33);
System.out.write(10);
}
}
class Outer {
class Inner {
class InnerInner {
}
}
}
class MyJavaClass {
public int counter;
public void dec(MyJavaClass this) {
this.counter = this.counter - 1;
}
public static void main(String[] args) {
MyJavaClass javaClass = new MyJavaClass();
javaClass.counter = 77;
System.out.write(javaClass.counter);
javaClass.dec();
javaClass.dec();
javaClass.dec();
System.out.write(javaClass.counter);
}
}
class HelloWorld2 {
public static void main(String[] args) {
System.out.println();
}
}
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment