diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-04 14:00:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-04 14:00:39 +0200 |
commit | cde0ff39da2459b16007fef701ebaa449fb6fe9d (patch) | |
tree | 9ba0f500505470043d6e78a30600419375d4c76f /src/testdir/check.vim | |
parent | d77a8525d5438cae49f670eb473ef60d87ca5f54 (diff) | |
download | vim-git-cde0ff39da2459b16007fef701ebaa449fb6fe9d.tar.gz |
patch 8.2.0509: various code is not properly tested.v8.2.0509
Problem: various code is not properly tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5871)
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r-- | src/testdir/check.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim index 22c33c0ac..34bf5b319 100644 --- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -133,3 +133,13 @@ func CheckNotRoot() throw 'Skipped: cannot run test as root' endif endfunc + +" Command to check that the current language is English +command CheckEnglish call CheckEnglish() +func CheckEnglish() + if v:lang != "C" && v:lang !~ '^[Ee]n' + throw 'Skipped: only works in English language environment' + endif +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |