mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
test: verify that msgpacks-rpc exceptions are working
This commit is contained in:
parent
64844b7312
commit
d696fa51f8
@ -105,4 +105,10 @@ describe('vim_* functions', function()
|
||||
eq(nvim('get_windows')[2], nvim('get_current_window'))
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user