aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/exit_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-16 06:38:50 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-01-16 18:03:08 +0800
commit61d5bd561addfd4cc9917712bdf983e77137089e (patch)
tree8947d5407fe261b26867d678cc6acb3ec97e3b9b /test/functional/core/exit_spec.lua
parentce66f158b55287924b33451b272de847ab75b332 (diff)
downloadrneovim-61d5bd561addfd4cc9917712bdf983e77137089e.tar.gz
rneovim-61d5bd561addfd4cc9917712bdf983e77137089e.tar.bz2
rneovim-61d5bd561addfd4cc9917712bdf983e77137089e.zip
refactor: remove E5500, adjust tests
Now with try_end() including more exception info, E5500 looks like redundant information. Adjust tests for more exception information.
Diffstat (limited to 'test/functional/core/exit_spec.lua')
-rw-r--r--test/functional/core/exit_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/core/exit_spec.lua b/test/functional/core/exit_spec.lua
index 8cad7adfa6..05a69e1992 100644
--- a/test/functional/core/exit_spec.lua
+++ b/test/functional/core/exit_spec.lua
@@ -89,14 +89,14 @@ describe(':cquit', function()
end)
it('exits with redir msg for multiple exit codes after :cquit 1 2', function()
- test_cq('cquit 1 2', nil, 'Vim(cquit):E488: Trailing characters: 2: cquit 1 2')
+ test_cq('cquit 1 2', nil, 'nvim_exec(): 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, 'Vim(cquit):E488: Trailing characters: X: cquit X')
+ test_cq('cquit X', nil, 'nvim_exec(): 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, 'Vim(cquit):E488: Trailing characters: -1: cquit -1')
+ test_cq('cquit -1', nil, 'nvim_exec(): Vim(cquit):E488: Trailing characters: -1: cquit -1')
end)
end)