From 14bda1fd9623de16b8b9d1cd0dba2433d09ad529 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 12:00:21 +0200 Subject: Begin acquisition before input --- tests/run.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/run.lua b/tests/run.lua index 5584c50..cab79c5 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -5065,6 +5065,28 @@ test("Acquisition emits the exact enabled prompt", function() same(0, #macro_host:prompts()) end) +test("Acquisition begins sequence state before input", function() + local state, transitions = fresh_sequence_state() + local host = MemoryHost.new({ + configuration = { mark_cursor = false }, + }) + acquisition_service.new({ + host = host, + transitions = transitions, + }):acquire( + "T", + "nov", + domain.Position.new(1, 1), + nil, + nil + ) + + local record = state:get_context("no") + same(domain.Descriptor.TILL_BACKWARD, record.previous_descriptor) + truthy(record.first_move) + same(nil, record.previous_target) +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then -- cgit v1.2.3