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:
committed by
Bram Moolenaar
parent
8ee52affe7
commit
bd9e796125
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user