diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 13:46:46 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 13:46:46 +0200 |
| commit | 63e3f4d19d70211a1e1b271d95219e222c1dd2ce (patch) | |
| tree | 2f6680127b4345f4d16f4cdc4b028e6616933fc9 /tests | |
| parent | ad45e97436dfec1d3c1e0ccf55ce98c2267987d2 (diff) | |
Preserve explicit target fallback
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/run.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/run.lua b/tests/run.lua index 1afe2c8..c755c05 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -7751,6 +7751,23 @@ test("Opposite explicit coordination swaps current-context descriptor", function end end) +test("Explicit coordination keeps code-zero target fallback", function() + local _, transitions = fresh_sequence_state() + transitions:BeginAcquisition("n", "T") + local host = MemoryHost.new() + local coordinator = sequence_coordinator.new({ host = host }) + + local same_repeat = coordinator:repeat_same_direction() + local opposite_repeat = coordinator:repeat_opposite_direction() + + for _, resolution in ipairs({ same_repeat, opposite_repeat }) do + falsy(resolution.request.neutral) + same(domain.TargetKind.CODE_FALLBACK, resolution.request.target.kind) + same(0, resolution.request.target.first_code) + same("", resolution.request.target.value) + end +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then |
