Skip to content

Commit

Permalink
Fix Tests: There is no findRandomAvailablePosition anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Der-Schubi committed Jan 24, 2024
1 parent 6c597ad commit 8bc0d6d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ public void findRandomAvailablePositionTest() {
val b = new BlockFinder();
b.addBlockWithMerge(10, 100);
b.addBlockWithMerge(50, 150);
assertWithMessage("invalid bound test").that(b.findRandomAvailablePosition(200, 50)).isEqualTo(-2);
assertWithMessage("impossible fit").that(b.findRandomAvailablePosition(100, 200)).isEqualTo(-1);
for (int i = 0; i < 50; i++) {
assertWithMessage("impossible fit failsafe " + i).that(b.findRandomAvailablePositionWithFailSafe(100, 200)).isIn(Range.closed(0, 100));
assertWithMessage("example fit " + i).that(b.findRandomAvailablePositionWithFailSafe(50, 2000)).isIn(Range.closed(50, 2000 - 50));
Expand Down

0 comments on commit 8bc0d6d

Please sign in to comment.