diff runtime/doc/testing.txt @ 23305:fab58304f77d

Update runtime files. Commit: https://github.com/vim/vim/commit/4072ba571babd733d1800c082416fe8fe3c28ed7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 23 13:56:35 2020 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Dec 2020 14:00:04 +0100
parents d4c7b3e9cd17
children 788e10cec9bd
line wrap: on
line diff
--- 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} [
 		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