diff -r d382dacfd73f -r 146ae7b52b64 rt/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/IntegerArithmeticTest.java --- a/rt/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/IntegerArithmeticTest.java Tue Feb 26 16:54:16 2013 +0100 +++ b/rt/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/IntegerArithmeticTest.java Tue Apr 02 15:40:51 2013 +0200 @@ -50,6 +50,14 @@ private static int neg(int x) { return (-x); } + + private static float fadd(float x, float y) { + return x + y; + } + + private static double dadd(double x, double y) { + return x + y; + } @Compare public int addOverflow() { return add(Integer.MAX_VALUE, 1); @@ -90,7 +98,7 @@ @Compare public int division() { return div(1, 2); } - + @Compare public int divisionReminder() { return mod(1, 2); } @@ -103,6 +111,14 @@ return mod(-7, 3); } + @Compare public int conversionFromFloat() { + return (int) fadd(-2, -0.6f); + } + + @Compare public int conversionFromDouble() { + return (int) dadd(-2, -0.6); + } + @Compare public boolean divByZeroThrowsArithmeticException() { try { div(1, 0);