Skip to content

Commit

Permalink
test[hashmap]: test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Jul 2, 2024
1 parent 3cb3f30 commit e4c0152
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ConcurrentHashMapTest {

@Test
public void equalsMapTest() {
var map = Map.of(1L, "a", 2L, "b", 3L, "c");
var map = Map.of(1L, "a", 2L, "b", 3L, "c", 4L, "d", 5L, "e", Long.MAX_VALUE, "max", Long.MIN_VALUE, "min");

var concurrentHashMapLongObject = new ConcurrentHashMapLongObject<String>();
concurrentHashMapLongObject.putAll(map);
Expand All @@ -40,7 +40,7 @@ public void equalsMapTest() {

var copyOnWriteHashMapLongObject = new CopyOnWriteHashMapLongObject<String>();
copyOnWriteHashMapLongObject.putAll(map);
Assert.assertEquals(map, concurrentHashMapLongObject);
Assert.assertEquals(map, copyOnWriteHashMapLongObject);
}

@Test
Expand Down

0 comments on commit e4c0152

Please sign in to comment.