1
0
forked from aniani/vim

patch 8.2.3321: some code is not tested

Problem:    Some code is not tested.
Solution:   Add some more tests. (Dominique Pellé, closes #8735)
This commit is contained in:
Dominique Pelle
2021-08-09 21:04:44 +02:00
committed by Bram Moolenaar
parent 8ee52affe7
commit bd9e796125
3 changed files with 46 additions and 0 deletions

View File

@@ -230,6 +230,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()