1.1 --- a/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Thu Feb 07 17:24:19 2013 +0100
1.2 +++ b/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Mon Feb 25 19:00:08 2013 +0100
1.3 @@ -250,7 +250,25 @@
1.4 @Compare public long moduloWithCorrection() {
1.5 return mod(0x7fff800000000000l, 0x800000000001l);
1.6 }
1.7 -
1.8 +
1.9 + @Compare public boolean divByZeroThrowsArithmeticException() {
1.10 + try {
1.11 + div(1, 0);
1.12 + return false;
1.13 + } catch (final ArithmeticException e) {
1.14 + return true;
1.15 + }
1.16 + }
1.17 +
1.18 + @Compare public boolean modByZeroThrowsArithmeticException() {
1.19 + try {
1.20 + mod(1, 0);
1.21 + return false;
1.22 + } catch (final ArithmeticException e) {
1.23 + return true;
1.24 + }
1.25 + }
1.26 +
1.27 @Compare public long shiftL1() {
1.28 return shl(0x00fa37d7763e0ca1l, 5);
1.29 }