1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/tck/IntegerArithmeticTest.java Tue Dec 18 20:19:11 2012 +0100
1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/tck/IntegerArithmeticTest.java Fri Jan 11 16:07:55 2013 +0100
1.3 @@ -39,6 +39,14 @@
1.4 return x * y;
1.5 }
1.6
1.7 + private static int div(int x, int y) {
1.8 + return x / y;
1.9 + }
1.10 +
1.11 + private static int mod(int x, int y) {
1.12 + return x % y;
1.13 + }
1.14 +
1.15 @Compare public int addOverflow() {
1.16 return add(Integer.MAX_VALUE, 1);
1.17 }
1.18 @@ -75,6 +83,14 @@
1.19 return mul(119106029, 1103515245);
1.20 }
1.21
1.22 + @Compare public int division() {
1.23 + return div(1, 2);
1.24 + }
1.25 +
1.26 + @Compare public int divisionReminder() {
1.27 + return mod(1, 2);
1.28 + }
1.29 +
1.30 @Factory
1.31 public static Object[] create() {
1.32 return CompareVMs.create(IntegerArithmeticTest.class);