0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.0226: test for patch 8.0.0224 missing CR characters

Problem:    The test for patch 8.0.0224 misses the CR characters and passes
            even without the fix. (Christian Brabandt)
Solution:   Use double quotes and \<CR>.
This commit is contained in:
Bram Moolenaar 2017-01-24 13:18:43 +01:00
parent 9957a10d0f
commit 1695f99d08
2 changed files with 15 additions and 11 deletions

View File

@ -17,15 +17,17 @@ func Test_fileformat_after_bw()
endfunc endfunc
func Test_fileformat_autocommand() func Test_fileformat_autocommand()
let filecnt=['', 'foobar', 'eins', '', 'zwei', 'drei', 'vier', 'fünf', ''] let filecnt = ["\<CR>", "foobar\<CR>", "eins\<CR>", "\<CR>", "zwei\<CR>", "drei", "vier", "fünf", ""]
let ffs=&ffs let ffs = &ffs
call writefile(filecnt, 'Xfile', 'b') call writefile(filecnt, 'Xfile', 'b')
au BufReadPre Xfile set ffs=dos ff=dos au BufReadPre Xfile set ffs=dos ff=dos
new Xfile new Xfile
call assert_equal('dos', &l:ff) call assert_equal('dos', &l:ff)
call assert_equal('dos', &ffs) call assert_equal('dos', &ffs)
" cleanup " cleanup
let &ffs=ffs call delete('Xfile')
let &ffs = ffs
au! BufReadPre Xfile au! BufReadPre Xfile
bw! bw!
endfunc endfunc

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
226,
/**/ /**/
225, 225,
/**/ /**/