diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-04 21:18:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-04 21:18:46 +0200 |
commit | e2e4075fad1326181edc5a131e48c644ef613693 (patch) | |
tree | f3749b559e690b3e8e80990441aeb6459d955fce /src/testdir/test_backspace_opt.vim | |
parent | 24f7750ffa9730579736d779b7cc94faff325fc1 (diff) | |
download | vim-git-e2e4075fad1326181edc5a131e48c644ef613693.tar.gz |
patch 8.2.1593: tests do not check the error number properlyv8.2.1593
Problem: Tests do not check the error number properly.0
Solution: Add a colon after the error number. (closes #6869)
Diffstat (limited to 'src/testdir/test_backspace_opt.vim')
-rw-r--r-- | src/testdir/test_backspace_opt.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testdir/test_backspace_opt.vim b/src/testdir/test_backspace_opt.vim index 149d8a8d3..b7e00242a 100644 --- a/src/testdir/test_backspace_opt.vim +++ b/src/testdir/test_backspace_opt.vim @@ -41,10 +41,10 @@ func Test_backspace_option() set backspace-=eol call assert_equal('', &backspace) " Check the error - call assert_equal(0, match(Exec('set backspace=ABC'), '.*E474')) - call assert_equal(0, match(Exec('set backspace+=def'), '.*E474')) + call assert_equal(0, match(Exec('set backspace=ABC'), '.*E474:')) + call assert_equal(0, match(Exec('set backspace+=def'), '.*E474:')) " NOTE: Vim doesn't check following error... - "call assert_equal(0, match(Exec('set backspace-=ghi'), '.*E474')) + "call assert_equal(0, match(Exec('set backspace-=ghi'), '.*E474:')) " Check backwards compatibility with version 5.4 and earlier set backspace=0 @@ -55,8 +55,8 @@ func Test_backspace_option() call assert_equal('2', &backspace) set backspace=3 call assert_equal('3', &backspace) - call assert_false(match(Exec('set backspace=4'), '.*E474')) - call assert_false(match(Exec('set backspace=10'), '.*E474')) + call assert_false(match(Exec('set backspace=4'), '.*E474:')) + call assert_false(match(Exec('set backspace=10'), '.*E474:')) " Cleared when 'compatible' is set set compatible |