Mercurial > vim
view src/testdir/test_fileformat.vim @ 10548:74effdaa369e
Updated runtime files.
commit https://github.com/vim/vim/commit/68563937f58ea2dc31b58739336c383d2fd7e6cf
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 10 13:31:15 2017 +0100
Updated runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 10 Jan 2017 13:45: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