Commit 19948c3b authored by uwdkn's avatar uwdkn

Merge branch 'exec-testcases' into 'master'

Add more tests to ensure correct FIRM construction

See merge request IPDSnelting/mjtest-tests!54
parents 4d1f072e 6b0a0d74
import lib.BooleanUtils;
class Test {
public static void main(String[] args) {
BooleanUtils bu = new BooleanUtils();
boolean b1 = 0 == 0;
boolean b2 = 0 != 0;
boolean b3 = !true;
boolean b4 = !!!true == true;
bu.println(b1);
bu.println(b2);
bu.println(b3);
bu.println(b4);
}
}
\ No newline at end of file
class Test {
public static void main(String[] args) throws Exception {
System.out.println(System.in.read());
System.out.println(System.in.read()); /* should return -1 */
}
}
class Test {
public static void main(String[] args) {
int INT_MAX = 2147483647;
int INT_MIN = -2147483648;
System.out.println(INT_MAX + 1);
System.out.println(INT_MIN - 1);
System.out.println(INT_MAX * 2);
System.out.println(INT_MIN * 2);
System.out.println(INT_MAX * -1);
System.out.println(INT_MIN * -1);
System.out.println(INT_MAX / 1);
System.out.println(INT_MIN / 1);
System.out.println(INT_MAX / -1);
System.out.println(INT_MIN / -1);
System.out.println(INT_MAX / INT_MAX);
System.out.println(INT_MIN / INT_MIN);
System.out.println(INT_MAX / INT_MIN);
System.out.println(INT_MIN / INT_MAX);
System.out.println(INT_MAX % 1);
System.out.println(INT_MIN % 1);
System.out.println(INT_MAX % -1);
System.out.println(INT_MIN % -1);
System.out.println(INT_MAX % INT_MAX);
System.out.println(INT_MIN % INT_MIN);
System.out.println(INT_MAX % INT_MIN);
System.out.println(INT_MIN % INT_MAX);
}
}
\ No newline at end of file
import lib.BooleanUtils;
class Test {
public static void main(String[] args) {
BooleanUtils bu = new BooleanUtils();
a a = new a();
a b = new a();
bu.println(a == a);
bu.println(a != a);
bu.println(b == b);
bu.println(b != b);
bu.println(a == b);
bu.println(a != b);
bu.println(a == null);
bu.println(a != null);
bu.println(null == b);
bu.println(null != b);
}
}
class a {
}
\ No newline at end of file
import lib.BooleanUtils;
class Test {
public static void main(String[] args) {
BooleanUtils bu = new BooleanUtils();
int[] a = new int[0];
int[] b = new int[0];
bu.println(a == a);
bu.println(a != a);
bu.println(b == b);
bu.println(b != b);
bu.println(a == b);
bu.println(a != b);
bu.println(a == null);
bu.println(a != null);
bu.println(null == b);
bu.println(null != b);
}
}
\ No newline at end of file
Markdown is supported
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