diff src/testdir/test_fileformat.vim @ 19409:ba6afd154f91 v8.2.0262

patch 8.2.0262: fileformat test fails on MS-Windows Commit: https://github.com/vim/vim/commit/50434bd74c7708e3e2a47449b6a3a8d9fa069f71 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 16 14:55:22 2020 +0100 patch 8.2.0262: fileformat test fails on MS-Windows Problem: Fileformat test fails on MS-Windows. Solution: Set fileformat of buffer.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Feb 2020 15:00:03 +0100
parents 2f4be7ca1b1b
children 85e8bee2e3e2
line wrap: on
line diff
--- a/src/testdir/test_fileformat.vim
+++ b/src/testdir/test_fileformat.vim
@@ -281,10 +281,13 @@ endfunc
 func Test_fileformat_plusplus_read()
   new
   call setline(1, ['one', 'two', 'three'])
+  set ff=unix
   w ++ff=dos Xfile1
   enew!
+  " A :read doesn't change the fileformat, but does apply to the read lines.
   r ++fileformat=unix Xfile1
   call assert_equal('unix', &fileformat)
+  call assert_equal("three\r", getline('$'))
   3r ++edit Xfile1
   call assert_equal('dos', &fileformat)
   close!