summaryrefslogtreecommitdiff
path: root/tests/run.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.lua')
-rw-r--r--tests/run.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/run.lua b/tests/run.lua
index 7e5659a..19568fa 100644
--- a/tests/run.lua
+++ b/tests/run.lua
@@ -3989,6 +3989,24 @@ test("Expired repeat applies Public Reset and requests acquisition", function()
same("char-current", cleanup.target_overlays[1].identity)
end)
+test("Relative lower-case keys use the stored descriptor", function()
+ fresh_sequence_state()
+ local host = MemoryHost.new({
+ configuration = { fix_key_direction = false },
+ })
+ local resolver = repeat_resolver.new({ policy = policy.new(host) })
+
+ for _, stored in ipairs({ "f", "F", "t", "T" }) do
+ for _, pressed in ipairs({ "f", "t" }) do
+ same(
+ domain.Descriptor.from_string(stored),
+ resolver:resolve_primary_direction(stored, pressed),
+ stored .. "/" .. pressed
+ )
+ end
+ end
+end)
+
for _, item in ipairs(tests) do
local ok, failure = xpcall(item.body, debug.traceback)
if not ok then