Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavo committed Jan 18, 2025
1 parent 1cd5d2c commit 365ca16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/template/kala/collection/MapLikeTestTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ default void updatedTest() {

assertMapEntries(data, map);

assertMapEntries(data.prepended(Tuple.of(new HashCollisionsValue(-1), Integer.MAX_VALUE)),
map.updated(new HashCollisionsValue(-1), Integer.MAX_VALUE));
assertMapEntries(data.appended(Tuple.of(new HashCollisionsValue(n), Integer.MAX_VALUE)),
map.updated(new HashCollisionsValue(n), Integer.MAX_VALUE));

for (int i = 0; i < n; i++) {
assertMapEntries(data.updated(i, Tuple.of(new HashCollisionsValue(i), Integer.MAX_VALUE)),
map.updated(new HashCollisionsValue(i), Integer.MAX_VALUE));
Expand Down

0 comments on commit 365ca16

Please sign in to comment.