summaryrefslogtreecommitdiffstats
path: root/src/testdir/check.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-04 14:00:39 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-04 14:00:39 +0200
commitcde0ff39da2459b16007fef701ebaa449fb6fe9d (patch)
tree9ba0f500505470043d6e78a30600419375d4c76f /src/testdir/check.vim
parentd77a8525d5438cae49f670eb473ef60d87ca5f54 (diff)
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.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index 22c33c0ac7..34bf5b319d 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