RigBrandTests: Belt is built in its own pinned arena, not eight seeds that may hold no belt
Merge fix: the children-within-reach generator leaves 37 of 90 arenas with no belt, so Belt.Stage threw under seeds 7919*k. Builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6fe7f7cecb
commit
1d4aa626aa
1 changed files with 4 additions and 2 deletions
|
|
@ -37,9 +37,11 @@ public sealed partial class RunStartTests
|
|||
[MemberData(nameof(PinnedRigs))]
|
||||
public void TheRigsKeepTheirBrands(Scenario scenario, string[] brands)
|
||||
{
|
||||
for (uint seed = 1; seed <= 8; seed++)
|
||||
// Belt stages only in an arena that holds a belt (37 of 90 seeds hold none), so it is built in its own pinned arena.
|
||||
var seeds = scenario is Belt ? new[] { scenario.Seed } : Enumerable.Range(1, 8).Select(index => (uint)index * 7919).ToArray();
|
||||
foreach (var seed in seeds)
|
||||
{
|
||||
var (_, _, staged, failures) = Launch(new Scripted(false, scenario.Stage, seed * 7919, scenario.Generate));
|
||||
var (_, _, staged, failures) = Launch(new Scripted(false, scenario.Stage, seed, scenario.Generate));
|
||||
Assert.Empty(failures);
|
||||
var ships = staged.Entities.Append(staged.Player).Where(ship => _items.GetData(ship.Hull).Name is "Longinus" or "Smoke Test Hull" or "Turret");
|
||||
foreach (var brand in brands)
|
||||
|
|
|
|||
Loading…
Reference in a new issue