diff -r 6cad41d877d2 -r b2731af0357d vmtest/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java --- a/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Thu Feb 07 17:24:19 2013 +0100 +++ b/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Fri Feb 15 16:06:12 2013 +0100 @@ -250,7 +250,25 @@ @Compare public long moduloWithCorrection() { return mod(0x7fff800000000000l, 0x800000000001l); } - + + @Compare public boolean divByZeroThrowsArithmeticException() { + try { + div(1, 0); + return false; + } catch (final ArithmeticException e) { + return true; + } + } + + @Compare public boolean modByZeroThrowsArithmeticException() { + try { + mod(1, 0); + return false; + } catch (final ArithmeticException e) { + return true; + } + } + @Compare public long shiftL1() { return shl(0x00fa37d7763e0ca1l, 5); }