aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-12 06:24:29 +0800
committerGitHub <noreply@github.com>2022-07-12 06:24:29 +0800
commitdaa49b525e5c55958e9854cd463a763791e6600b (patch)
tree7203add5f3ae1ca1dcc32334beb5f985543cb37c /test
parent5c3bbb67e7c59b2fa18e37fdd9845a0e7e3381db (diff)
parent27fd17a79cd2c51e71077bdd896635188ad711b5 (diff)
downloadrneovim-daa49b525e5c55958e9854cd463a763791e6600b.tar.gz
rneovim-daa49b525e5c55958e9854cd463a763791e6600b.tar.bz2
rneovim-daa49b525e5c55958e9854cd463a763791e6600b.zip
Merge pull request #19320 from zeertzjq/vim-8.2.0212
vim-patch:8.2.{0212,0243,0250}: insufficient tests
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/arglist_spec.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua
index fbb67f9c03..46a016ab1c 100644
--- a/test/functional/legacy/arglist_spec.lua
+++ b/test/functional/legacy/arglist_spec.lua
@@ -3,6 +3,7 @@
local helpers = require('test.functional.helpers')(after_each)
local clear, command, eq = helpers.clear, helpers.command, helpers.eq
local eval, exc_exec, neq = helpers.eval, helpers.exc_exec, helpers.neq
+local pcall_err = helpers.pcall_err
describe('argument list commands', function()
before_each(clear)
@@ -206,7 +207,6 @@ describe('argument list commands', function()
command('%argd')
end)
-
it('test for autocommand that redefines the argument list, when doing ":all"', function()
command('autocmd BufReadPost Xxx2 next Xxx2 Xxx1')
command("call writefile(['test file Xxx1'], 'Xxx1')")
@@ -234,4 +234,9 @@ describe('argument list commands', function()
command('argdelete Xxx*')
command('bwipe! Xxx1 Xxx2 Xxx3')
end)
+
+ it('quitting Vim with unedited files in the argument list throws E173', function()
+ command('args a b c')
+ eq('Vim(quit):E173: 2 more files to edit', pcall_err(command, 'quit'))
+ end)
end)