mirror of
https://github.com/neovim/neovim.git
synced 2026-05-02 03:55:00 +00:00
test: use unix fileformat to test NULs on systemlist
This commit is contained in:
committed by
Justin M. Keyes
parent
7311fb7cad
commit
8d58012786
@@ -442,11 +442,13 @@ describe('systemlist()', function()
|
||||
describe('with output containing NULs', function()
|
||||
local fname = 'Xtest'
|
||||
|
||||
before_each(create_file_with_nuls(fname))
|
||||
before_each(function()
|
||||
command('set ff=unix')
|
||||
create_file_with_nuls(fname)()
|
||||
end)
|
||||
after_each(delete_file(fname))
|
||||
|
||||
it('replaces NULs by newline characters', function()
|
||||
if helpers.pending_win32(pending) then return end
|
||||
eq({'part1\npart2\npart3'}, eval('systemlist("cat '..fname..'")'))
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user