Fix batch s1: the two-AI re-pin names its true cause, linux pinned, the census has a positive control
The digest moves because the Zenith (11,6) rotation changes the generated station's fit, not because shields are on sale (a Bare Djinni and hand-fitted Longinus fight). linux-x64 pinned to Soul's Yggdrasil measurement. TheCensusNamesAMountNoSoldDesignTakes fails the Where(h => false) mutant. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8d7c923c75
commit
80c3555c76
2 changed files with 18 additions and 4 deletions
|
|
@ -57,12 +57,13 @@ public sealed partial class RunStartTests
|
|||
// spread (station-reactor-spread), and that blob alone moved the digest (the same tree with the old catalog measured 52fbb10d;
|
||||
// traced: only Notorious Station moves it, because the zone's station Zenith carries a Notorious Station reactor lot whose
|
||||
// minted quality changes with the role spread, and Snapshot hashes every zone entity's heat and shield).
|
||||
// Repinned a tenth time (hardpoint-fit-1): shields are on sale, so the generated Djinnis carry a shield and Snapshot hashes
|
||||
// every zone entity's shield. windows-x64 133e5d76 -> e4a3d6e5, measured on windows-x64. The linux-x64 pin below is NOT moved: no
|
||||
// linux host measured this cut, so it still holds the pre-shield digest and needs a measurement on one.
|
||||
// Repinned a tenth time (hardpoint-fit-1): the Zenith's (11,6) radiator mount was rotation None and is now Clockwise, so the
|
||||
// zone's generated station Zenith can fit a radiator there and Snapshot hashes its heat. windows-x64 133e5d76 -> e4a3d6e5,
|
||||
// linux-x64 9c70a3ee -> 6b8b31ad (measured on Yggdrasil). The fight itself stages hand-fitted Longinus ships and a Bare Djinni,
|
||||
// so the shields now on sale do not move it: the same catalog with only the Zenith rotation put back to None measures the old digest.
|
||||
private static readonly System.Collections.Generic.Dictionary<string, string> TwoAiPinnedDigests = new()
|
||||
{
|
||||
["linux-x64"] = "9c70a3ee234fb3b879f721a4a4abf13dd83bf56fd8733690d356b89b8a392258",
|
||||
["linux-x64"] = "6b8b31ade2ee042a51dfabd53fe104a7567274224c79dc2fe4bffb98bb800ed1",
|
||||
// Measured on windows-x64 at the commit that added this pin (the fight is one history there: TwoAiFightIsOneHistory).
|
||||
["windows-x64"] = "e4a3d6e5a411b01e73828821260d57d3f52ffdba50f7954f17058792833bb58a",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -14,6 +14,19 @@ public sealed class HardpointFitTests
|
|||
Assert.Empty(Program.UnfillableHardpoints(cache));
|
||||
}
|
||||
|
||||
// Positive control: the census is not a tautology. The Zenith's (11,6) mount put back to rotation None (its authoring slip, in
|
||||
// memory on a read-only catalog) is the one mount no sold design takes, and the census names it.
|
||||
[Fact]
|
||||
public void TheCensusNamesAMountNoSoldDesignTakes()
|
||||
{
|
||||
using var cache = RestoredHullsTests.OpenCatalog();
|
||||
var mount = Assert.Single(Assert.Single(cache.GetAll<HullData>(), h => h.Name == "Zenith").Hardpoints,
|
||||
h => h.Position.x == 11 && h.Position.y == 6);
|
||||
Assert.Equal(ItemRotation.Clockwise, mount.Rotation);
|
||||
mount.Rotation = ItemRotation.None;
|
||||
Assert.Equal(new[] { "Zenith (Station) Radiator 1x4 at (11,6)" }, Program.UnfillableHardpoints(cache));
|
||||
}
|
||||
|
||||
// The census is over the catalog the game boots, packages included: a package hull's mount is as fillable as a shipped one.
|
||||
[Fact]
|
||||
public void TheCensusReadsThePackagesTheGameBoots()
|
||||
|
|
|
|||
Loading…
Reference in a new issue