blob: 584f20cdfc71228d0270bb977d50209d88f808bb [file] [log] [blame]
Bram Moolenaare8ef3a02016-10-12 17:45:29 +02001" Test behavior of fileformat after bwipeout of last buffer
2
3func 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&
17endfunc