comparison src/testdir/test_startup.vim @ 9808:0470742f7346 v7.4.2179

commit https://github.com/vim/vim/commit/e4a76ad0e74a31bbd9f1b1ac5b816d714d19a412 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 7 16:50:10 2016 +0200 patch 7.4.2179 Problem: Reading from stdin test fails on MS-Windows. Solution: Strip the extra space.
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Aug 2016 17:00:05 +0200
parents 108b62925cb0
children 6049c1f01391
comparison
equal deleted inserted replaced
9807:c5a8f37bb077 9808:0470742f7346
175 \ 'write Xtestout', 175 \ 'write Xtestout',
176 \ 'quit!', 176 \ 'quit!',
177 \ ] 177 \ ]
178 if RunVimPiped([], after, '-', 'echo something | ') 178 if RunVimPiped([], after, '-', 'echo something | ')
179 let lines = readfile('Xtestout') 179 let lines = readfile('Xtestout')
180 call assert_equal('something', lines[0]) 180 " MS-Windows adds a space after the word
181 call assert_equal(['something'], split(lines[0]))
181 endif 182 endif
182 call delete('Xtestout') 183 call delete('Xtestout')
183 endfunc 184 endfunc