Bram Moolenaar | e8ef3a0 | 2016-10-12 17:45:29 +0200 | [diff] [blame] | 1 | " Test behavior of fileformat after bwipeout of last buffer |
2 | |||||
3 | func Test_fileformat_after_bw() | ||||
4 | bwipeout | ||||
5 | set fileformat& | ||||
6 | if &fileformat == 'dos' | ||||
7 | let test_fileformats = 'unix' | ||||
8 | elseif &fileformat == 'unix' | ||||
9 | let test_fileformats = 'mac' | ||||
10 | else " must be mac | ||||
11 | let test_fileformats = 'dos' | ||||
12 | endif | ||||
13 | exec 'set fileformats='.test_fileformats | ||||
14 | bwipeout! | ||||
15 | call assert_equal(test_fileformats, &fileformat) | ||||
16 | set fileformats& | ||||
17 | endfunc |