Mercurial > vim
diff src/testdir/test_fileformat.vim @ 24101:6d3dee0d7de5 v8.2.2592
patch 8.2.2592: code coverage could be improved
Commit: https://github.com/vim/vim/commit/6fd367a97c8653a2d734a38252c7d68d4b2ebaa7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 13 13:14:04 2021 +0100
patch 8.2.2592: code coverage could be improved
Problem: Code coverage could be improved.
Solution: Add a few more tests. (Dominique Pell?, closes https://github.com/vim/vim/issues/7957)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Mar 2021 13:15:03 +0100 |
parents | 08940efa6b4e |
children | dc3d45d9a4a8 |
line wrap: on
line diff
--- a/src/testdir/test_fileformat.vim +++ b/src/testdir/test_fileformat.vim @@ -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')