From: Bram Moolenaar Date: Sat, 11 Apr 2020 16:36:38 +0000 (+0200) Subject: patch 8.2.0542: no test for E386 X-Git-Tag: v8.2.0542 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8832a3457831707286dd2d9252ba14a5f9fd4c60;p=vim patch 8.2.0542: no test for E386 Problem: No test for E386. Solution: Add a test. (Dominique Pelle, closes #5911) --- diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim index 923a082b1..b7e751fa0 100644 --- 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\", 'tx') - call feedkeys("/the\",'tx') + call feedkeys("/the\", 'tx') call assert_equal('the', @/) - call feedkeys("/thes\\\",'tx') + call feedkeys("/thes\\\", '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/;\", "tx")', 'E386:') + bwipe! endfunc func Test_search_display_pattern() diff --git a/src/version.c b/src/version.c index b170d4a86..e85bc3133 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 542, /**/ 541, /**/