From aff351a1f12227622948bda2f2a093363e80e084 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 10:46:39 +0200 Subject: Route Visual contexts --- tests/run.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests') diff --git a/tests/run.lua b/tests/run.lua index d24f3f0..8eeef32 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -13,6 +13,7 @@ local case_policy = require("clever_f.case_policy") local policy = require("clever_f.policy") local migemo_catalog = require("clever_f.migemo_catalog") local motion_plan = require("clever_f.motion_plan") +local motion_executor = require("clever_f.motion_executor") local sequence_state = require("clever_f.sequence_state") local state_transitions = require("clever_f.state_transitions") local text_topology = require("clever_f.text_topology") @@ -3106,6 +3107,21 @@ test("DestinationEngine leaves cursor and sequence state unchanged", function() same(origin, host:read_cursor()) end) +test("Motion execution routes every Visual kind to the Visual path", function() + local visual_modes = { + "v", + "V", + string.char(0x16), + } + for _, mode in ipairs(visual_modes) do + same( + motion_executor.ExecutionPath.VISUAL, + motion_executor.execution_path(mode), + mode + ) + end +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then -- cgit v1.2.3