Skip to content

Commit

Permalink
Add testcase for #348
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Feb 5, 2023
1 parent a390cf4 commit 2bb87f3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/VolumePackerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,4 +563,20 @@ public function testIssue272(): void

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

public function testIssue348(): void
{
$this->markTestSkipped();
$box = new TestBox('18x14x8', 180, 140, 80, 0, 180, 140, 80, 100);

$items = new ItemList();
$items->insert(new TestItem('Product1', 45, 20, 35, 17, Rotation::BestFit), 2);
$items->insert(new TestItem('Product2', 175, 70, 70, 26, Rotation::BestFit), 1);
$items->insert(new TestItem('Product3', 155, 70, 70, 20, Rotation::BestFit), 1);

$volumePacker = new VolumePacker($box, $items);
$packedBox = $volumePacker->pack();

self::assertCount(4, $packedBox->getItems());
}
}

0 comments on commit 2bb87f3

Please sign in to comment.