Mercurial > vim
comparison src/testdir/check.vim @ 19906:031184ace7c5 v8.2.0509
patch 8.2.0509: various code is not properly tested.
Commit: https://github.com/vim/vim/commit/cde0ff39da2459b16007fef701ebaa449fb6fe9d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 4 14:00:39 2020 +0200
patch 8.2.0509: various code is not properly tested.
Problem: various code is not properly tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5871)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 Apr 2020 14:15:05 +0200 |
parents | 2dc5e6ddeb4c |
children | e373843e2980 |
comparison
equal
deleted
inserted
replaced
19905:a1a00030eedc | 19906:031184ace7c5 |
---|---|
131 func CheckNotRoot() | 131 func CheckNotRoot() |
132 if IsRoot() | 132 if IsRoot() |
133 throw 'Skipped: cannot run test as root' | 133 throw 'Skipped: cannot run test as root' |
134 endif | 134 endif |
135 endfunc | 135 endfunc |
136 | |
137 " Command to check that the current language is English | |
138 command CheckEnglish call CheckEnglish() | |
139 func CheckEnglish() | |
140 if v:lang != "C" && v:lang !~ '^[Ee]n' | |
141 throw 'Skipped: only works in English language environment' | |
142 endif | |
143 endfunc | |
144 | |
145 " vim: shiftwidth=2 sts=2 expandtab |