blob: d531b74e6d63d71bbf51c7b0b878a65d3f970736 [file] [log] [blame]
Bram Moolenaar4a137b42017-08-04 22:37:11 +02001" Tests for saving/loading a file with some lines ending in
2" CTRL-M, some not
3func Test_lineending()
4 let l = ["this line ends in a\<CR>",
5 \ "this one doesn't",
6 \ "this one does\<CR>",
7 \ "and the last one doesn't"]
8 set ta tx
9 enew!
10 call append(0, l)
11 $delete
12 write Xfile1
13 bwipe Xfile1
14 edit Xfile1
15 let t = getline(1, '$')
16 call assert_equal(l, t)
17 new | only
18 call delete('Xfile1')
19endfunc