aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/check.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-04 18:17:26 +0800
committerGitHub <noreply@github.com>2022-11-04 18:17:26 +0800
commit24fa5f70edd4cc3b613237283ee7d63af1948c16 (patch)
treec5d988415386a3d451afef6aa859a3c15889d3c4 /src/nvim/testdir/check.vim
parent04fbb1de4488852c3ba332898b17180500f8984e (diff)
downloadrneovim-24fa5f70edd4cc3b613237283ee7d63af1948c16.tar.gz
rneovim-24fa5f70edd4cc3b613237283ee7d63af1948c16.tar.bz2
rneovim-24fa5f70edd4cc3b613237283ee7d63af1948c16.zip
vim-patch:8.2.0448: various functions not properly tested (#20926)
Problem: Various functions not properly tested. Solution: Add more tests, especially for failures. (Yegappan Lakshmanan, closes vim/vim#5843) https://github.com/vim/vim/commit/0e05de46226eb4e5ea580beefa71831f92d613d3 Cherry-pick test changes from patch 8.2.0427 and skip Test_has(). Cherry-pick Test_complete_wildmenu() change from patch 8.2.4339.
Diffstat (limited to 'src/nvim/testdir/check.vim')
-rw-r--r--src/nvim/testdir/check.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim
index 92a51d4371..1459b70243 100644
--- a/src/nvim/testdir/check.vim
+++ b/src/nvim/testdir/check.vim
@@ -4,6 +4,9 @@ source term_util.vim
" Command to check for the presence of a feature.
command -nargs=1 CheckFeature call CheckFeature(<f-args>)
func CheckFeature(name)
+ " if !has(a:name, 1)
+ " throw 'Checking for non-existent feature ' .. a:name
+ " endif
if !has(a:name)
throw 'Skipped: ' .. a:name .. ' feature missing'
endif