Economy command tests: a held cycle whose radius falls still applies

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-10-23 06:48:22 +02:00
commit ae3e4a7c58

View file

@ -416,6 +416,16 @@ public sealed class EconomyCommandTests
Assert.Equal(bytes, File.ReadAllBytes(f.CatalogPath));
}
[Fact]
public void AHeldCycleWhoseRadiusFallsStillApplies()
{
using var f = HeldLoop();
var code = Author(f, true, out var output, a => Good(f, a, "loopb", inputs: new[] { ("loopa", 1) }));
Assert.Equal(0, code);
Assert.Contains("L-productive", output);
Assert.Contains("Wrote 1 records", output);
}
[Fact]
public void AHeldUnproductiveCatalogStillAppliesABatchThatLeavesTheCycleAlone()
{