From 5b8cabfef7c3707f3e53e13844d90e5a217e1e84 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 2 Apr 2021 18:55:57 +0200 Subject: patch 8.2.2694: when 'matchpairs' is empty every character beeps Problem: When 'matchpairs' is empty every character beeps. (Marco Hinz) Solution: Bail out when no character in 'matchpairs' was found. (closes #8053) Add assert_nobeep(). --- runtime/doc/testing.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'runtime/doc/testing.txt') diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt index 4e4cff0c2..5d85358d7 100644 --- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -243,7 +243,8 @@ test_srand_seed([seed]) *test_srand_seed()* assert_beeps({cmd}) *assert_beeps()* Run {cmd} and add an error message to |v:errors| if it does NOT produce a beep or visual bell. - Also see |assert_fails()| and |assert-return|. + Also see |assert_fails()|, |assert_nobeep()| and + |assert-return|. Can also be used as a |method|: > GetCmd()->assert_beeps() @@ -376,6 +377,14 @@ assert_match({pattern}, {actual} [, {msg}]) Can also be used as a |method|: > getFile()->assert_match('foo.*') +< +assert_nobeep({cmd}) *assert_nobeep()* + Run {cmd} and add an error message to |v:errors| if it + produces a beep or visual bell. + Also see |assert_beeps()|. + + Can also be used as a |method|: > + GetCmd()->assert_nobeep() < *assert_notequal()* assert_notequal({expected}, {actual} [, {msg}]) -- cgit v1.2.1