changeset 1663 | 03f1dd008e83 |
parent 1352 | 7bc78045adfd |
child 1666 | 4e349118658f |
1.1 --- a/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Wed Oct 09 14:50:29 2013 +0200 1.2 +++ b/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Mon Aug 11 18:17:18 2014 +0200 1.3 @@ -114,7 +114,17 @@ 1.4 1.5 return (trueCount == 1) ? result : -2; 1.6 } 1.7 - 1.8 + 1.9 + @Compare public int parameterSlotCount() { 1.10 + long argCounts = 281479271874563L; 1.11 + int x = unpack(argCounts, 2); 1.12 + return x; 1.13 + } 1.14 + private static char unpack(long packed, int word) { // word==0 => return a, ==3 => return d 1.15 + assert(word <= 3); 1.16 + final long val = packed >> ((3-word) * 16); 1.17 + return (char)val; 1.18 + } 1.19 @Compare public long conversion() { 1.20 return Long.MAX_VALUE; 1.21 }