draft: initial implementation

This commit is contained in:
Marc Jakobi
2024-04-11 20:46:06 +02:00
parent ac72bb5c76
commit e61adde6ce
15 changed files with 904 additions and 102 deletions
+18
View File
@@ -0,0 +1,18 @@
local keys = require('lz.n.handler.keys')
describe('keys', function()
it('parses ids correctly', function()
local tests = {
{ '<C-/>', '<c-/>', true },
{ '<C-h>', '<c-H>', true },
{ '<C-h>k', '<c-H>K', false },
}
for _, test in ipairs(tests) do
if test[3] then
assert.same(keys.parse(test[1]).id, keys.parse(test[2]).id)
else
assert.is_not.same(keys.parse(test[1]).id, keys.parse(test[2]).id)
end
end
end)
end)