diff src/testdir/test_arglist.vim @ 15097:1946487c74ba v8.1.0559

patch 8.1.0559: command line completion not sufficiently tested commit https://github.com/vim/vim/commit/b513d3079bbe3f59a1f1a3d6931939a76cd7e54a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 2 14:55:08 2018 +0100 patch 8.1.0559: command line completion not sufficiently tested Problem: Command line completion not sufficiently tested. Solution: Add more tests. (Dominique Pelle, closes https://github.com/vim/vim/issues/3622)
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Dec 2018 15:00:05 +0100
parents 2c0bfa167468
children d2a162896a2a
line wrap: on
line diff
--- a/src/testdir/test_arglist.vim
+++ b/src/testdir/test_arglist.vim
@@ -396,6 +396,18 @@ func Test_argdelete()
   %argd
 endfunc
 
+func Test_argdelete_completion()
+  args foo bar
+
+  call feedkeys(":argdelete \<C-A>\<C-B>\"\<CR>", 'tx')
+  call assert_equal('"argdelete bar foo', @:)
+
+  call feedkeys(":argdelete x \<C-A>\<C-B>\"\<CR>", 'tx')
+  call assert_equal('"argdelete x bar foo', @:)
+
+  %argd
+endfunc
+
 " Tests for the :next, :prev, :first, :last, :rewind commands
 func Test_argpos()
   call Reset_arglist()