From 30f6f516dd8970162d82594934be591cb2c4047f Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 13:34:01 +0200 Subject: Inspect primary fold policy --- tests/run.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests') diff --git a/tests/run.lua b/tests/run.lua index 6752ae3..fe67fd3 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -7098,6 +7098,19 @@ test("Primary coordination reads normalized invocation state", function() same("q", invocation.macro_state.register) end) +test("Primary coordination inspects fold policy during preflight", function() + local host = MemoryHost.new({ + fold_open_policy = { "horizontal" }, + closed_fold_levels = 1, + }) + local coordinator = sequence_coordinator.new({ host = host }) + + same(domain.Descriptor.FIND_FORWARD, coordinator:primary("f")) + local operations = host:operations() + same("read_fold_state", operations[#operations].operation) + truthy(host:read_fold_state():opens("horizontal")) +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then -- cgit v1.2.3