diff options
Diffstat (limited to 'test/functional/core/exit_spec.lua')
-rw-r--r-- | test/functional/core/exit_spec.lua | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/test/functional/core/exit_spec.lua b/test/functional/core/exit_spec.lua index 65f6bc28a6..aafad4c8a5 100644 --- a/test/functional/core/exit_spec.lua +++ b/test/functional/core/exit_spec.lua @@ -97,14 +97,26 @@ describe(':cquit', function() end) it('exits with redir msg for multiple exit codes after :cquit 1 2', function() - test_cq('cquit 1 2', nil, 'nvim_exec2(): Vim(cquit):E488: Trailing characters: 2: cquit 1 2') + test_cq( + 'cquit 1 2', + nil, + 'nvim_exec2(), line 1: Vim(cquit):E488: Trailing characters: 2: cquit 1 2' + ) end) it('exits with redir msg for non-number exit code after :cquit X', function() - test_cq('cquit X', nil, 'nvim_exec2(): Vim(cquit):E488: Trailing characters: X: cquit X') + test_cq( + 'cquit X', + nil, + 'nvim_exec2(), line 1: Vim(cquit):E488: Trailing characters: X: cquit X' + ) end) it('exits with redir msg for negative exit code after :cquit -1', function() - test_cq('cquit -1', nil, 'nvim_exec2(): Vim(cquit):E488: Trailing characters: -1: cquit -1') + test_cq( + 'cquit -1', + nil, + 'nvim_exec2(), line 1: Vim(cquit):E488: Trailing characters: -1: cquit -1' + ) end) end) |