Skip to content

Commit

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

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

public function testIssue366(): void
{
$this->markTestSkipped();
$box = new TestBox('Pallet', 250, 160, 1, 0, 250, 160, 1, 100);

$items = new ItemList();
$items->insert(new TestItem('Product1', 30, 70, 1, 1, Rotation::BestFit), 18);

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

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

0 comments on commit 186807f

Please sign in to comment.