diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 11:09:44 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 11:09:44 +0200 |
| commit | 39bd7cca604d1d9d3b07a1861706e637441be7a8 (patch) | |
| tree | 402452d38422b5b7c77a66a1b0a8b43988df22bc /tests/run.lua | |
| parent | d44346e4195637dccd28d2908c11d4aea373043f (diff) | |
Resolve relative lowercase direction
Diffstat (limited to 'tests/run.lua')
| -rw-r--r-- | tests/run.lua | 18 |
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 |
