diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-05 20:38:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-05 20:38:22 +0100 |
commit | 07ada5ff2fd8f22ed3233ae5c4ddf87c7b3f56fe (patch) | |
tree | 0be9740166fea1f37b2a447558c7eed059b5a671 /runtime | |
parent | 94255df057afa0b7dde77612f3274d4440871bd1 (diff) |
patch 8.2.0212: missing search/substitute pattern hardly testedv8.2.0212
Problem: Missing search/substitute pattern hardly tested.
Solution: Add test_clear_search_pat() and tests. (Yegappan Lakshmanan,
closes #5579)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 1 | ||||
-rw-r--r-- | runtime/doc/testing.txt | 5 | ||||
-rw-r--r-- | runtime/doc/usr_41.txt | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 1d282d286b..26e7d12de4 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2848,6 +2848,7 @@ term_wait({buf} [, {time}]) Number wait for screen to be updated test_alloc_fail({id}, {countdown}, {repeat}) none make memory allocation fail test_autochdir() none enable 'autochdir' during startup +test_clear_search_pat() none clears the last used search pattern test_feedinput({string}) none add key sequence to input buffer test_garbagecollect_now() none free memory right now for testing test_garbagecollect_soon() none free memory soon for testing diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt index c5fa2e83cc..7fb24e6307 100644 --- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -52,6 +52,11 @@ test_autochdir() *test_autochdir()* startup has finished. +test_clear_search_pat() *test_clear_search_pat()* + Clears the last used search pattern (|/|) and the substitute + pattern (|:s|). This is useful for testing conditions where + these patterns are not set previously. + test_feedinput({string}) *test_feedinput()* Characters in {string} are queued for processing as if they were typed by the user. This uses a low level input buffer. diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt index 1bed01f418..316eebcaea 100644 --- a/runtime/doc/usr_41.txt +++ b/runtime/doc/usr_41.txt @@ -963,6 +963,7 @@ Testing: *test-functions* assert_report() report a test failure test_alloc_fail() make memory allocation fail test_autochdir() enable 'autochdir' during startup + test_clear_search_pat() clears the last used search pattern test_override() test with Vim internal overrides test_garbagecollect_now() free memory right now test_getvalue() get value of an internal variable |