diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 13:49:09 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 13:49:09 +0200 |
| commit | 6308bfb27f0f7bc7e01953b696c734f078890c2b (patch) | |
| tree | acbe87d96409626a46c5c4dee5305e0e3d2f1f01 | |
| parent | 046e9e4ff39289cfb60141b2d26f1f174b1b5b05 (diff) | |
Record coordinated operator payload
| -rw-r--r-- | tests/run.lua | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
