diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-15 22:17:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-15 22:17:05 +0800 |
| commit | 6b686e7e1e09a048bd8e99e86d052d713f9ec30e (patch) | |
| tree | 77bbeb8298ce2bb4483f748ddd40808889776239 /src/nvim/testdir/test_arglist.vim | |
| parent | cbb2e634c9da7cc6e5fe6f18539ab7deb9d67915 (diff) | |
| parent | 747dec7925e130e754cf5ef1db87dd8747923514 (diff) | |
| download | rneovim-6b686e7e1e09a048bd8e99e86d052d713f9ec30e.tar.gz rneovim-6b686e7e1e09a048bd8e99e86d052d713f9ec30e.tar.bz2 rneovim-6b686e7e1e09a048bd8e99e86d052d713f9ec30e.zip | |
Merge pull request #19785 from zeertzjq/vim-8.2.1803
vim-patch:8.2.{1803,3345,3392}
Diffstat (limited to 'src/nvim/testdir/test_arglist.vim')
| -rw-r--r-- | src/nvim/testdir/test_arglist.vim | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_arglist.vim b/src/nvim/testdir/test_arglist.vim index ca7c8574cb..0a72e38755 100644 --- a/src/nvim/testdir/test_arglist.vim +++ b/src/nvim/testdir/test_arglist.vim @@ -87,6 +87,10 @@ func Test_argadd() new arga call assert_equal(0, len(argv())) + + if has('unix') + call assert_fails('argadd `Xdoes_not_exist`', 'E479:') + endif endfunc func Test_argadd_empty_curbuf() @@ -420,6 +424,8 @@ func Test_argdelete() call assert_equal(['b'], argv()) call assert_fails('argdelete', 'E610:') call assert_fails('1,100argdelete', 'E16:') + call assert_fails('argdel /\)/', 'E55:') + call assert_fails('1argdel 1', 'E474:') call Reset_arglist() args a b c d @@ -427,6 +433,8 @@ func Test_argdelete() argdel call Assert_argc(['a', 'c', 'd']) %argdel + + call assert_fails('argdel does_not_exist', 'E480:') endfunc func Test_argdelete_completion() @@ -472,13 +480,16 @@ func Test_arglist_autocmd() new " redefine arglist; go to Xxx1 next! Xxx1 Xxx2 Xxx3 - " open window for all args + " open window for all args; Reading Xxx2 will change the arglist and the + " third window will get Xxx1: + " win 1: Xxx1 + " win 2: Xxx2 + " win 3: Xxx1 all call assert_equal('test file Xxx1', getline(1)) wincmd w wincmd w call assert_equal('test file Xxx1', getline(1)) - " should now be in Xxx2 rewind call assert_equal('test file Xxx2', getline(1)) |