diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:46:39 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 10:46:39 +0200 |
| commit | aff351a1f12227622948bda2f2a093363e80e084 (patch) | |
| tree | f872b3451c264d98a55d49ee9cebdede266c6d97 /tests/run.lua | |
| parent | b1dad49f9debfbacaec9bf209a1c4673c24c5c39 (diff) | |
Route Visual contexts
Diffstat (limited to 'tests/run.lua')
| -rw-r--r-- | tests/run.lua | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
