mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.2945: some buffer related code is not tested
Problem: Some buffer related code is not tested. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8320)
This commit is contained in:
committed by
Bram Moolenaar
parent
1328bde9d4
commit
59b262362f
@@ -69,6 +69,14 @@ func Test_file_cmd()
|
||||
call assert_fails('3file', 'E474:')
|
||||
call assert_fails('0,0file', 'E474:')
|
||||
call assert_fails('0file abc', 'E474:')
|
||||
if !has('win32')
|
||||
" Change the name of the buffer to the same name
|
||||
new Xfile1
|
||||
file Xfile1
|
||||
call assert_equal('Xfile1', @%)
|
||||
call assert_equal('Xfile1', @#)
|
||||
bw!
|
||||
endif
|
||||
endfunc
|
||||
|
||||
" Test for the :drop command
|
||||
|
Reference in New Issue
Block a user