mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 17:24:29 +00:00
test: verify that msgpacks-rpc exceptions are working
This commit is contained in:
@@ -105,4 +105,10 @@ describe('vim_* functions', function()
|
|||||||
eq(nvim('get_windows')[2], nvim('get_current_window'))
|
eq(nvim('get_windows')[2], nvim('get_current_window'))
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('can throw exceptions', function()
|
||||||
|
local status, err = pcall(nvim, 'get_option', 'invalid-option')
|
||||||
|
eq(false, status)
|
||||||
|
ok(err:match('Invalid option name') ~= nil)
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user