comparison runtime/doc/testing.txt @ 24307:55f458d35292 v8.2.2694

patch 8.2.2694: when 'matchpairs' is empty every character beeps Commit: https://github.com/vim/vim/commit/5b8cabfef7c3707f3e53e13844d90e5a217e1e84 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 2 18:55:57 2021 +0200 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().
author Bram Moolenaar <Bram@vim.org>
date Fri, 02 Apr 2021 19:00:06 +0200
parents 788e10cec9bd
children 5c98ea5f5d6e
comparison
equal deleted inserted replaced
24306:4a6be7bbbe68 24307:55f458d35292
241 241
242 242
243 assert_beeps({cmd}) *assert_beeps()* 243 assert_beeps({cmd}) *assert_beeps()*
244 Run {cmd} and add an error message to |v:errors| if it does 244 Run {cmd} and add an error message to |v:errors| if it does
245 NOT produce a beep or visual bell. 245 NOT produce a beep or visual bell.
246 Also see |assert_fails()| and |assert-return|. 246 Also see |assert_fails()|, |assert_nobeep()| and
247 |assert-return|.
247 248
248 Can also be used as a |method|: > 249 Can also be used as a |method|: >
249 GetCmd()->assert_beeps() 250 GetCmd()->assert_beeps()
250 < 251 <
251 *assert_equal()* 252 *assert_equal()*
375 test.vim line 12: Pattern '^f.*o$' does not match 'foobar' ~ 376 test.vim line 12: Pattern '^f.*o$' does not match 'foobar' ~
376 377
377 Can also be used as a |method|: > 378 Can also be used as a |method|: >
378 getFile()->assert_match('foo.*') 379 getFile()->assert_match('foo.*')
379 < 380 <
381 assert_nobeep({cmd}) *assert_nobeep()*
382 Run {cmd} and add an error message to |v:errors| if it
383 produces a beep or visual bell.
384 Also see |assert_beeps()|.
385
386 Can also be used as a |method|: >
387 GetCmd()->assert_nobeep()
388 <
380 *assert_notequal()* 389 *assert_notequal()*
381 assert_notequal({expected}, {actual} [, {msg}]) 390 assert_notequal({expected}, {actual} [, {msg}])
382 The opposite of `assert_equal()`: add an error message to 391 The opposite of `assert_equal()`: add an error message to
383 |v:errors| when {expected} and {actual} are equal. 392 |v:errors| when {expected} and {actual} are equal.
384 Also see |assert-return|. 393 Also see |assert-return|.