Mercurial > vim
diff src/testdir/test_search.vim @ 22087:ff21e2962490 v8.2.1593
patch 8.2.1593: tests do not check the error number properly
Commit: https://github.com/vim/vim/commit/e2e4075fad1326181edc5a131e48c644ef613693
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 4 21:18:46 2020 +0200
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 https://github.com/vim/vim/issues/6869)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Sep 2020 21:30:04 +0200 |
parents | e3c1e12f062c |
children | 0ef3ae4ec70e |
line wrap: on
line diff
--- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -266,7 +266,7 @@ func Test_search_cmdline2() " 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 @@ func Test_search_cmdline3s() 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 @@ endfunc 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