diff -r b42bfe334128 -r 3754580b6c67 vm/src/test/java/org/apidesign/vm4brwsr/NumberTest.java --- a/vm/src/test/java/org/apidesign/vm4brwsr/NumberTest.java Mon Feb 04 09:41:33 2013 +0100 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/NumberTest.java Tue Feb 05 15:03:22 2013 +0100 @@ -169,6 +169,16 @@ ); } + @Test public void longNegate3() throws Exception { + final long res = -0xfffffffffffffeddl; + assertExec("Long negate", + Numbers.class, "negL__J_3B", + Double.valueOf(res), + new byte[] { (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xfe, (byte)0xdd } + ); + } + + @Test public void longAddOverflow() throws Exception { final long res = Long.MAX_VALUE + 1l; assertExec("Addition 1+MAX",