comparison src/testdir/test_lineending.vim @ 21765:08940efa6b4e v8.2.1432

patch 8.2.1432: various inconsistencies in test files Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 12 18:50:36 2020 +0200 patch 8.2.1432: various inconsistencies in test files Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Aug 2020 19:00:08 +0200
parents 0240e7e3d736
children
comparison
equal deleted inserted replaced
21764:476b6faad407 21765:08940efa6b4e
1 " Tests for saving/loading a file with some lines ending in 1 " Tests for saving/loading a file with some lines ending in
2 " CTRL-M, some not 2 " CTRL-M, some not
3
3 func Test_lineending() 4 func Test_lineending()
4 let l = ["this line ends in a\<CR>", 5 let l = ["this line ends in a\<CR>",
5 \ "this one doesn't", 6 \ "this one doesn't",
6 \ "this one does\<CR>", 7 \ "this one does\<CR>",
7 \ "and the last one doesn't"] 8 \ "and the last one doesn't"]
15 let t = getline(1, '$') 16 let t = getline(1, '$')
16 call assert_equal(l, t) 17 call assert_equal(l, t)
17 new | only 18 new | only
18 call delete('Xfile1') 19 call delete('Xfile1')
19 endfunc 20 endfunc
21
22 " vim: shiftwidth=2 sts=2 expandtab