From 6308bfb27f0f7bc7e01953b696c734f078890c2b Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 13:49:09 +0200 Subject: Record coordinated operator payload --- tests/run.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests') diff --git a/tests/run.lua b/tests/run.lua index e5ac940..2d38574 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -7859,6 +7859,32 @@ test("Explicit repeats bypass every primary-only coordinator stage", function() truthy(coordinator:last_explicit_resolution() ~= nil) end) +test("Coordinated operator changes record resolved dot payload", function() + fresh_sequence_state() + local host = MemoryHost.new({ + buffer_lines = { "hoge fuge" }, + cursor = { line = 1, byte_column = 1 }, + mode = "no", + pending_operator = "delete", + input_packets = { { kind = "text", text = "e" } }, + configuration = { + mark_cursor = false, + mark_char = false, + }, + emit_movement_events = false, + }) + local facade = action_facade.new({ host = host }) + + local outcome = facade:primary("f") + + same(domain.ActionKind.MOVEMENT, outcome.kind) + truthy(domain.DotPayload.is(outcome.dot_payload)) + same(domain.Descriptor.FIND_FORWARD, outcome.dot_payload.descriptor) + same("e", outcome.dot_payload.target.value) + same(outcome.dot_payload, host:dot_repeat_payload()) + same(" fuge", host:read_text():line(1)) +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then -- cgit v1.2.3