]> granicus.if.org Git - vim/commitdiff
patch 8.2.0542: no test for E386 v8.2.0542
authorBram Moolenaar <Bram@vim.org>
Sat, 11 Apr 2020 16:36:38 +0000 (18:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 11 Apr 2020 16:36:38 +0000 (18:36 +0200)
Problem:    No test for E386.
Solution:   Add a test. (Dominique Pelle, closes #5911)

src/testdir/test_search.vim
src/version.c

index 923a082b18122ec7d14bae34f152ca81d4669ded..b7e751fa04cbc4eb9bd79d7cdee136bc7ff3c447 100644 (file)
@@ -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()
index b170d4a86b1e36f30ac27774753c242c384ac667..e85bc31333526a75b4dca9d1285de68b9c448e5a 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    542,
 /**/
     541,
 /**/