forked from aniani/vim
patch 8.2.0542: no test for E386
Problem: No test for E386. Solution: Add a test. (Dominique Pelle, closes #5911)
This commit is contained in:
@@ -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
|
||||
@@ -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()
|
||||
|
||||
@@ -738,6 +738,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
542,
|
||||
/**/
|
||||
541,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user