diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-27 21:04:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-27 21:04:52 +0200 |
| commit | 9d200cd0a3ef749509cee3331ba1d0b5fb62e7f2 (patch) | |
| tree | e7e348486b77ba7f3b166d71c1892660b95b75ad /src/nvim/testdir | |
| parent | 595acbbc42e2856d958f518421a8cb56b0501127 (diff) | |
| download | rneovim-9d200cd0a3ef749509cee3331ba1d0b5fb62e7f2.tar.gz rneovim-9d200cd0a3ef749509cee3331ba1d0b5fb62e7f2.tar.bz2 rneovim-9d200cd0a3ef749509cee3331ba1d0b5fb62e7f2.zip | |
getcompletion("cmdline") (#6376)
Closes #5823
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 40db227d97..f56227250c 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -156,6 +156,20 @@ func Test_getcompletion() call assert_equal(['Testing'], l) endif + " Command line completion tests + let l = getcompletion('cd ', 'cmdline') + call assert_true(index(l, 'sautest/') >= 0) + let l = getcompletion('cd NoMatch', 'cmdline') + call assert_equal([], l) + let l = getcompletion('let v:n', 'cmdline') + call assert_true(index(l, 'v:null') >= 0) + let l = getcompletion('let v:notexists', 'cmdline') + call assert_equal([], l) + let l = getcompletion('call tag', 'cmdline') + call assert_true(index(l, 'taglist(') >= 0) + let l = getcompletion('call paint', 'cmdline') + call assert_equal([], l) + " For others test if the name is recognized. let names = ['buffer', 'environment', 'file_in_path', \ 'mapping', 'shellcmd', 'tag', 'tag_listfiles', 'user'] |