From ad45e97436dfec1d3c1e0ccf55ce98c2267987d2 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 13:46:34 +0200 Subject: Resolve opposite explicit direction --- tests/run.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tests') diff --git a/tests/run.lua b/tests/run.lua index db19ffa..1afe2c8 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -7730,6 +7730,27 @@ test("Same-direction explicit coordination reads current-context state", functio same(visual_target, resolution.request.target) end) +test("Opposite explicit coordination swaps current-context descriptor", function() + for _, stored in ipairs({ "f", "F", "t", "T" }) do + local _, transitions = fresh_sequence_state() + local stored_target = target("x") + transitions:BeginAcquisition("n", stored) + transitions:CommitAcquiredTarget("n", stored_target) + local host = MemoryHost.new({ + configuration = { fix_key_direction = true }, + count = 3, + }) + + local resolution = sequence_coordinator.new({ host = host }) + :repeat_opposite_direction() + + same("explicit_opposite", resolution.kind) + same(domain.Descriptor.swap(stored), resolution.request.descriptor) + same(stored_target, resolution.request.target) + same(3, resolution.invocation.count.value) + end +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then -- cgit v1.2.3