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:
parent
fe7c5226cc
commit
ae3e4a7c58
1 changed files with 10 additions and 0 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue