From ae3e4a7c587aa9b27974c91db08d0be1a1308025 Mon Sep 17 00:00:00 2001 From: soul Date: Fri, 23 Oct 2026 06:48:22 +0200 Subject: [PATCH] Economy command tests: a held cycle whose radius falls still applies Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/EconomyCommandTests.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/EconomyCommandTests.cs b/tests/Aetheria.Shared.Tests/EconomyCommandTests.cs index 73d616f75..4d4efbe98 100644 --- a/tests/Aetheria.Shared.Tests/EconomyCommandTests.cs +++ b/tests/Aetheria.Shared.Tests/EconomyCommandTests.cs @@ -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() {