Skip to content

Commit

Permalink
Add testcase for #227
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Feb 5, 2023
1 parent 1655af6 commit 53ede49
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 @@ -454,4 +454,18 @@ public function testIssue214(): void
self::assertCount(4, $packedBox->getItems());
}
}

public function testIssue227(): void
{
$this->markTestSkipped();
$box = new TestBox('Box', 160, 180, 160, 0, 160, 180, 160, 1000);

$items = new ItemList();
$items->insert(new TestItem('Item', 42, 100, 70, 1, Rotation::BestFit), 11);

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

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

0 comments on commit 53ede49

Please sign in to comment.