diff -r b0e82dcf51fb -r b9bf26ea0118 vmtest/src/test/java/org/apidesign/bck2brwsr/tck/IntegerArithmeticTest.java --- a/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/IntegerArithmeticTest.java Tue Jan 15 12:26:19 2013 +0100 +++ b/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/IntegerArithmeticTest.java Thu Feb 07 17:41:41 2013 +0100 @@ -47,6 +47,10 @@ return x % y; } + private static int neg(int x) { + return (-x); + } + @Compare public int addOverflow() { return add(Integer.MAX_VALUE, 1); } @@ -91,6 +95,18 @@ return mod(1, 2); } + @Compare public int negate() { + return neg(123456); + } + + @Compare public int negateMaxInt() { + return neg(Integer.MAX_VALUE); + } + + @Compare public int negateMinInt() { + return neg(Integer.MIN_VALUE); + } + @Compare public int sumTwoDimensions() { int[][] matrix = createMatrix(4, 3); matrix[0][0] += 10;