summaryrefslogtreecommitdiff
path: root/src/testdir/check.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r--src/testdir/check.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index 687610195..0bbe7caf9 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -6,6 +6,9 @@ command -nargs=1 MissingFeature throw 'Skipped: ' .. <args> .. ' feature missing
" 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)
MissingFeature a:name
endif