Skip to content

Commit

Permalink
Add testcase for #609
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed May 5, 2024
1 parent 3200e72 commit b7b87a8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/VolumePackerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,4 +680,19 @@ public function testIssue590(): void

self::assertCount(29, $packedBox->items);
}

public function testIssue609(): void
{
$this->markTestSkipped();
$box = new TestBox('Le petite box', 340, 350, 30, 80, 220, 310, 26, 2000);

$itemList = new ItemList();
$itemList->insert(new TestItem('CD', 130, 140, 10, 100, Rotation::BestFit), 4);
$itemList->insert(new TestItem('Cassette', 70, 110, 17, 100, Rotation::BestFit), 2);

$packer = new VolumePacker($box, $itemList);
$packedBox = $packer->pack();

self::assertCount(6, $packedBox->items);
}
}

0 comments on commit b7b87a8

Please sign in to comment.