Mercurial > vim
changeset 19973:9f5758ee0b10 v8.2.0542
patch 8.2.0542: no test for E386
Commit: https://github.com/vim/vim/commit/8832a3457831707286dd2d9252ba14a5f9fd4c60
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 11 18:36:38 2020 +0200
patch 8.2.0542: no test for E386
Problem: No test for E386.
Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/5911)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Apr 2020 18:45:03 +0200 |
parents | 1cd7f3ea9339 |
children | 7b71d96d6582 |
files | src/testdir/test_search.vim src/version.c |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -17,9 +17,9 @@ func Test_search_cmdline() set noincsearch :1 call feedkeys("/foobar\<cr>", 'tx') - call feedkeys("/the\<cr>",'tx') + call feedkeys("/the\<cr>", 'tx') call assert_equal('the', @/) - call feedkeys("/thes\<C-P>\<C-P>\<cr>",'tx') + call feedkeys("/thes\<C-P>\<C-P>\<cr>", 'tx') call assert_equal('foobar', @/) " Test 2 @@ -1351,7 +1351,7 @@ func Test_large_hex_chars2() endfunc func Test_one_error_msg() - " This was also giving an internal error + " This was also giving an internal error call assert_fails('call search(" \\((\\v[[=P=]]){185}+ ")', 'E871:') endfunc @@ -1402,6 +1402,11 @@ func Test_search_errors() call assert_fails("call search('pat', 'b', 1, [])", 'E745:') call assert_fails("call search('pat', 'ns')", 'E475:') call assert_fails("call search('pat', 'mr')", 'E475:') + + new + call setline(1, ['foo', 'bar']) + call assert_fails('call feedkeys("/foo/;/bar/;\<CR>", "tx")', 'E386:') + bwipe! endfunc func Test_search_display_pattern()