Skip to content

Commit e3bf901

Browse files
committed
fix test
1 parent 87f3461 commit e3bf901

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/test/java/com/trivago/fastutilconcurrentwrapper/intkey/PrimitiveConcurrentMapTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ void longsAreSame () {
6161
assertEquals(CFUtil.bucket(Long.valueOf(x), 4_000_000), CFUtil.bucket(x, 4_000_000));
6262
x = Long.MAX_VALUE;
6363
assertEquals(CFUtil.bucket(Long.valueOf(x), 4_000_000), CFUtil.bucket(x, 4_000_000));
64-
assertEquals(CFUtil.bucket(Long.hashCode(x), 4_000_000), CFUtil.bucket(x, 4_000_000));
6564

6665
total = 0;
6766
var r = ThreadLocalRandom.current();
@@ -74,13 +73,11 @@ void longsAreSame () {
7473
i = Long.MIN_VALUE + z;
7574
hc = CFUtil.bucket(i, 4_000_000);
7675
assertEquals(CFUtil.bucket(Long.valueOf(i), 4_000_000), hc);
77-
assertEquals(CFUtil.bucket(Long.hashCode(i), 4_000_000), hc);
7876
assertTrue(hc >= 0 && hc < 4_000_000);
7977

8078
i = Long.MAX_VALUE - z;
8179
hc = CFUtil.bucket(i, Integer.MAX_VALUE);
8280
assertEquals(CFUtil.bucket(Long.valueOf(i), Integer.MAX_VALUE), hc);
83-
assertEquals(CFUtil.bucket(Long.hashCode(i), Integer.MAX_VALUE), hc);
8481
assertTrue(hc >= 0 && hc < Integer.MAX_VALUE);
8582

8683
total++;

0 commit comments

Comments
 (0)