test: add tests for executing commands with backwards range

This commit is contained in:
zeertzjq
2023-05-05 19:03:08 +08:00
parent 4a098b97e5
commit 3a1e17e3a1
2 changed files with 15 additions and 0 deletions

View File

@@ -361,6 +361,12 @@ describe('API', function()
eq('', eval('v:errmsg')) -- v:errmsg was not updated.
eq('', eval('v:exception'))
end)
it('gives E493 instead of prompting on backwards range', function()
command('split')
eq('Vim(windo):E493: Backwards range given: 2,1windo echo',
pcall_err(command, '2,1windo echo'))
end)
end)
describe('nvim_command_output', function()