patch 8.2.1593: tests do not check the error number properly
Problem: Tests do not check the error number properly.0
Solution: Add a colon after the error number. (closes #6869)
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim
index 9769fb2..ca06c34 100644
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -266,7 +266,7 @@
" In that case Vim should return "E35 no previous regular expression",
" but it looks like Vim still sees /foo and therefore the test fails.
" Therefore, disabling this test
- "call assert_fails(feedkeys("/foo\<c-w>\<cr>", 'tx'), 'E35')
+ "call assert_fails(feedkeys("/foo\<c-w>\<cr>", 'tx'), 'E35:')
"call assert_equal({'lnum': 1, 'leftcol': 0, 'col': 0, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 0}, winsaveview())
" clean up
@@ -470,7 +470,7 @@
call feedkeys(":%smagic/the.e/xxx\<cr>", 'tx')
call assert_equal(' 2 xxx', getline('.'))
undo
- call assert_fails(":%snomagic/the.e/xxx\<cr>", 'E486')
+ call assert_fails(":%snomagic/the.e/xxx\<cr>", 'E486:')
"
call feedkeys(":%snomagic/the\\.e/xxx\<cr>", 'tx')
call assert_equal(' 2 xxx', getline('.'))
@@ -1278,8 +1278,8 @@
func Test_search_sentence()
new
" this used to cause a crash
- call assert_fails("/\\%')", 'E486')
- call assert_fails("/", 'E486')
+ call assert_fails("/\\%')", 'E486:')
+ call assert_fails("/", 'E486:')
/\%'(
/
endfunc