Skip to content

Commit

Permalink
Add testcase for #583
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Dec 4, 2023
1 parent 51ded4d commit 2edc23e
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 @@ -653,4 +653,20 @@ public function testIssue465C(): void

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

public function testIssue583(): void
{
$this->markTestSkipped();
$box = new TestBox('Example box', 380, 380, 140, 0, 380, 380, 140, 0);

$itemList = new ItemList();
$itemList->insert(new TestItem('Item 1', 315, 315, 11, 0, Rotation::BestFit));
$itemList->insert(new TestItem('Item 2', 135, 135, 80, 0, Rotation::BestFit));

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

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

0 comments on commit 2edc23e

Please sign in to comment.