From c55cd67ff7f38e4f68a955673a69aeb7eae56f19 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 12:42:03 +0200 Subject: Gate repeated TILL migration --- tests/run.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests') diff --git a/tests/run.lua b/tests/run.lua index 0663c2e..792f15b 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -6436,6 +6436,25 @@ test("Cross-line command movement rebuilds feedback at destination", function() same(2, state.target_overlays[1].anchor_line) end) +test("TILL migration requires a repeated move", function() + local shared_target = target_plan.build(target("a"), matching_policy()) + local till = motion_plan.build(shared_target, "t") + local find = motion_plan.build(shared_target, "f") + + falsy(feedback_service.repeated_till_migration_candidate({ + resolved_motion_plan = till, + first_move = true, + })) + truthy(feedback_service.repeated_till_migration_candidate({ + resolved_motion_plan = till, + first_move = false, + })) + falsy(feedback_service.repeated_till_migration_candidate({ + resolved_motion_plan = find, + first_move = false, + })) +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then -- cgit v1.2.3