summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-04 13:34:01 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-04 13:34:01 +0200
commit30f6f516dd8970162d82594934be591cb2c4047f (patch)
treecb85bc23a6e790d3139990517e3d8b37c6c8ed77 /tests
parent6e69d3d53ee9037dd8bedb1267413937f9a7e817 (diff)
Inspect primary fold policy
Diffstat (limited to 'tests')
-rw-r--r--tests/run.lua13
1 files changed, 13 insertions, 0 deletions
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