diff -r 7bc78045adfd -r 03f1dd008e83 rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java --- a/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Wed Oct 09 14:50:29 2013 +0200 +++ b/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Mon Aug 11 18:17:18 2014 +0200 @@ -114,7 +114,17 @@ return (trueCount == 1) ? result : -2; } - + + @Compare public int parameterSlotCount() { + long argCounts = 281479271874563L; + int x = unpack(argCounts, 2); + return x; + } + private static char unpack(long packed, int word) { // word==0 => return a, ==3 => return d + assert(word <= 3); + final long val = packed >> ((3-word) * 16); + return (char)val; + } @Compare public long conversion() { return Long.MAX_VALUE; }