vim-patch:8.2.3321: some code is not tested

Problem:    Some code is not tested.
Solution:   Add some more tests. (Dominique Pellé, closes vim/vim#8735)
bd9e796125

Include Test_confirm_write_partial_file() anyway, even though it will
not be run.
This commit is contained in:
Sean Dewar
2021-08-13 18:20:09 +01:00
parent e9ddff9d8a
commit 2cbbab28d2
2 changed files with 44 additions and 0 deletions

View File

@@ -191,6 +191,14 @@ func Test_saveas()
close!
enew | only
call delete('Xfile')
" :saveas should detect and set the file type.
syntax on
saveas! Xsaveas.pl
call assert_equal('perl', &filetype)
syntax off
%bw!
call delete('Xsaveas.pl')
endfunc
func Test_write_errors()