diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-02 14:55:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-02 14:55:08 +0100 |
commit | b513d3079bbe3f59a1f1a3d6931939a76cd7e54a (patch) | |
tree | 1683af0ef25f614588ca6ffb4ee9a12151763580 /src/testdir/test_arglist.vim | |
parent | d2ec51f399607d2df6ed1155b0bd303e722d6978 (diff) | |
download | vim-git-b513d3079bbe3f59a1f1a3d6931939a76cd7e54a.tar.gz |
patch 8.1.0559: command line completion not sufficiently testedv8.1.0559
Problem: Command line completion not sufficiently tested.
Solution: Add more tests. (Dominique Pelle, closes #3622)
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r-- | src/testdir/test_arglist.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index b896c3dec..cb1117eed 100644 --- 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() |