Skip to content

Commit

Permalink
Tidy up test
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Jan 30, 2020
1 parent 5c57108 commit dda08dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/VolumePackerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,14 @@ public function testIssue172B(): void
$box = new TestBox('Box', 18, 18, 24, 0, 18, 18, 24, 10000);

$items = new ItemList();
$item = new TestItem('Larger', 10, 5, 8, 0, false);
for ($i = 0; $i < 10; ++$i) {
$items->insert(new TestItem('Larger', 10, 5, 8, 0, false));
$items->insert($item);
}

for ($i = 0; $i < 5; ++$i) {
$items->insert(new TestItem('Smaller', 5, 5, 3, 0, false));
$item = new TestItem('Smaller', 5, 5, 3, 0, false);
$items->insert($item);
}

$volumePacker = new VolumePacker($box, $items);
Expand All @@ -430,8 +432,9 @@ public function testPassedInItemListKeepsItems(): void
$box = new TestBox('Box', 18, 18, 24, 0, 18, 18, 24, 10000);

$items = new ItemList();
$item = new TestItem('Item', 10, 5, 8, 0, false);
for ($i = 0; $i < 10; ++$i) {
$items->insert(new TestItem('Item', 10, 5, 8, 0, false));
$items->insert($item);
}

$volumePacker = new VolumePacker($box, $items);
Expand Down

0 comments on commit dda08dc

Please sign in to comment.