test: verify that msgpacks-rpc exceptions are working

This commit is contained in:
Thiago de Arruda 2014-10-23 21:14:50 -03:00
parent 64844b7312
commit d696fa51f8

View File

@ -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)