forked from aniani/vim
patch 8.2.2592: code coverage could be improved
Problem: Code coverage could be improved. Solution: Add a few more tests. (Dominique Pellé, closes #7957)
This commit is contained in:
@@ -33,6 +33,15 @@ func Test_fileformat_autocommand()
|
||||
bw!
|
||||
endfunc
|
||||
|
||||
func Test_fileformat_nomodifiable()
|
||||
new
|
||||
setlocal nomodifiable
|
||||
|
||||
call assert_fails('set fileformat=latin1', 'E21:')
|
||||
|
||||
bw
|
||||
endfunc
|
||||
|
||||
" Convert the contents of a file into a literal string
|
||||
func s:file2str(fname)
|
||||
let b = readfile(a:fname, 'B')
|
||||
|
||||
Reference in New Issue
Block a user