Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine committed Jul 29, 2023
1 parent 6f03201 commit c26d0fa
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ void testUnitAttachmentStackingLimit() {
assertThat(filterUnits(fourTanks, PLACEMENT_LIMIT, british, uk), is(fourTanks));

// the same four tanks are returned, even if we pass some existing units.
assertThat(filterUnits(fourTanks, PLACEMENT_LIMIT, british, uk, infantry.create(2, british)), is(fourTanks));
assertThat(
filterUnits(fourTanks, PLACEMENT_LIMIT, british, uk, infantry.create(2, british)),
is(fourTanks));
// and only 2 are returned if we pass 2 existing tanks
assertThat(filterUnits(fourTanks, PLACEMENT_LIMIT, british, uk, armour.create(2, british)), hasSize(2));
assertThat(
filterUnits(fourTanks, PLACEMENT_LIMIT, british, uk, armour.create(2, british)),
hasSize(2));

// we can't place 5 per the unit attachment's placementLimit
List<Unit> fiveTanks = armour.create(5, british);
Expand Down

0 comments on commit c26d0fa

Please sign in to comment.