diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-23 13:56:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-23 13:56:35 +0100 |
commit | 4072ba571babd733d1800c082416fe8fe3c28ed7 (patch) | |
tree | 398563288ba4d793e4f2e6d819f292ff4bba2754 /runtime/doc/testing.txt | |
parent | 9f63a65f22b6a899925ba15adbb711e86251114e (diff) | |
download | vim-git-4072ba571babd733d1800c082416fe8fe3c28ed7.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/doc/testing.txt')
-rw-r--r-- | runtime/doc/testing.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt index 96446853c..5be1890df 100644 --- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -1,4 +1,4 @@ -*testing.txt* For Vim version 8.2. Last change: 2020 Sep 06 +*testing.txt* For Vim version 8.2. Last change: 2020 Dec 12 VIM REFERENCE MANUAL by Bram Moolenaar @@ -308,8 +308,11 @@ assert_fails({cmd} [, {error} [, {msg} [, {lnum} [, {context}]]]]) first reported error: > assert_fails('cmd', ['E987:.*expected bool']) < The second pattern, if present, is matched against the last - reported error. To only match the last error use an empty - string for the first error: > + reported error. + If there is only one error then both patterns must match. This + can be used to check that there is only one error. + To only match the last error use an empty string for the first + error: > assert_fails('cmd', ['', 'E987:']) < If {msg} is empty then it is not used. Do this to get the |