robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
af23d17388
master
1" Tests for saving/loading a file with some lines ending in 2" CTRL-M, some not 3func Test_lineending () 4let l = [ "this line ends in a\<CR>" , 5 \"this one doesn't" , 6 \"this one does\<CR>" , 7 \"and the last one doesn't" ] 8set fileformat = dos 9enew ! 10call append ( 0 , l ) 11$ delete 12write Xfile1 13bwipe Xfile1 14edit Xfile1 15let t = getline ( 1 , '$' ) 16call assert_equal ( l , t ) 17new |only 18call delete ( 'Xfile1' ) 19endfunc