mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
refactor(api): handle option dicts properly
Do not copy a lot of lua strings (dict keys) to just strequal() them Just compare them directly to a dedicated hash function. feat(generators): HASHY McHASHFACE
This commit is contained in:
@@ -1117,7 +1117,7 @@ describe('API', function()
|
||||
|
||||
describe('nvim_get_context', function()
|
||||
it('validates args', function()
|
||||
eq('unexpected key: blah',
|
||||
eq("Invalid key: 'blah'",
|
||||
pcall_err(nvim, 'get_context', {blah={}}))
|
||||
eq('invalid value for key: types',
|
||||
pcall_err(nvim, 'get_context', {types=42}))
|
||||
|
||||
Reference in New Issue
Block a user