Skip to content

Commit

Permalink
Add testcase for #268
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Feb 5, 2023
1 parent b919962 commit faa2147
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 @@ -533,4 +533,20 @@ public function testIssue264(): void
self::assertCount(5, $packedBox->getItems());
}
}

public function testIssue268(): void
{
foreach ([Rotation::KeepFlat, Rotation::BestFit] as $rotation) {
$this->markTestSkipped();
$box = new TestBox('Box', 280, 175, 180, 0, 280, 175, 180, 100000);

$items = new ItemList();
$items->insert(new TestItem('Item', 140, 35, 30, 0, $rotation), 60);

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

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

0 comments on commit faa2147

Please sign in to comment.