summaryrefslogtreecommitdiff
path: root/src/testdir/test_winbuf_close.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-04 21:18:46 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-04 21:18:46 +0200
commite2e4075fad1326181edc5a131e48c644ef613693 (patch)
treef3749b559e690b3e8e80990441aeb6459d955fce /src/testdir/test_winbuf_close.vim
parent24f7750ffa9730579736d779b7cc94faff325fc1 (diff)
downloadvim-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_winbuf_close.vim')
-rw-r--r--src/testdir/test_winbuf_close.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_winbuf_close.vim b/src/testdir/test_winbuf_close.vim
index 3f67e887a..1d3e35708 100644
--- a/src/testdir/test_winbuf_close.vim
+++ b/src/testdir/test_winbuf_close.vim
@@ -27,7 +27,7 @@ func Test_winbuf_close()
" test for failing :rew when hidden not set
set nohidden
call setline(1, 'testtext 2 2')
- call assert_fails('rewind', 'E37')
+ call assert_fails('rewind', 'E37:')
call assert_equal('Xtest2', bufname('%'))
call assert_equal('testtext 2 2', getline(1))
@@ -66,7 +66,7 @@ func Test_winbuf_close()
" test ":edit" failing in modified buffer when 'hidden' not set
call setline(1, 'testtext 3 3')
- call assert_fails('edit Xtest1', 'E37')
+ call assert_fails('edit Xtest1', 'E37:')
call assert_equal('Xtest3', bufname('%'))
call assert_equal('testtext 3 3', getline(1))
@@ -80,7 +80,7 @@ func Test_winbuf_close()
split Xtest3
set nohidden
call setline(1, 'testtext 3 3 3')
- call assert_fails('close', 'E37')
+ call assert_fails('close', 'E37:')
call assert_equal('Xtest3', bufname('%'))
call assert_equal('testtext 3 3 3', getline(1))
@@ -115,7 +115,7 @@ func Test_winbuf_close()
call assert_equal('Xtest2', bufname('%'))
quit!
call assert_equal('Xtest3', bufname('%'))
- call assert_fails('silent! quit!', 'E37')
+ call assert_fails('silent! quit!', 'E37:')
call assert_equal('Xtest1', bufname('%'))
call delete('Xtest1')