Mercurial > vim
view src/testdir/test_fileformat.vim @ 10641:bcd353707cfc
Added tag v8.0.0210 for changeset 27be410d6d297c2be375da46e0c7f3c24c2b85fc
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 21 Jan 2017 20:15:05 +0100 |
parents | c55a7232fb48 |
children | 6a252c6afd5b |
line wrap: on
line source
" Test behavior of fileformat after bwipeout of last buffer func Test_fileformat_after_bw() bwipeout set fileformat& if &fileformat == 'dos' let test_fileformats = 'unix' elseif &fileformat == 'unix' let test_fileformats = 'mac' else " must be mac let test_fileformats = 'dos' endif exec 'set fileformats='.test_fileformats bwipeout! call assert_equal(test_fileformats, &fileformat) set fileformats& endfunc