forked from aniani/vim
patch 8.2.0576: some errors are not covered by tests
Problem: Some errors are not covered by tests. Solution: Add a few more tests. (Dominique Pelle, closes #5920)
This commit is contained in:
@@ -155,4 +155,15 @@ func Test_bdelete_cmd()
|
||||
%bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_buffer_error()
|
||||
new foo1
|
||||
new foo2
|
||||
|
||||
call assert_fails('buffer foo', 'E93:')
|
||||
call assert_fails('buffer bar', 'E94:')
|
||||
call assert_fails('buffer 0', 'E939:')
|
||||
|
||||
%bwipe
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user