1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/NumberTest.java Mon Feb 04 09:41:33 2013 +0100
1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/NumberTest.java Tue Feb 05 15:03:22 2013 +0100
1.3 @@ -169,6 +169,16 @@
1.4 );
1.5 }
1.6
1.7 + @Test public void longNegate3() throws Exception {
1.8 + final long res = -0xfffffffffffffeddl;
1.9 + assertExec("Long negate",
1.10 + Numbers.class, "negL__J_3B",
1.11 + Double.valueOf(res),
1.12 + new byte[] { (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xfe, (byte)0xdd }
1.13 + );
1.14 + }
1.15 +
1.16 +
1.17 @Test public void longAddOverflow() throws Exception {
1.18 final long res = Long.MAX_VALUE + 1l;
1.19 assertExec("Addition 1+MAX",