mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 07:11:20 +00:00
functests: Make sure that line ending is LF and not CRLF
This commit is contained in:
@@ -28,6 +28,7 @@ describe('Command-line option', function()
|
|||||||
local pipe = popen_w(
|
local pipe = popen_w(
|
||||||
nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', '-',
|
nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', '-',
|
||||||
fname)
|
fname)
|
||||||
|
pipe:write(':set fileformat=unix\n')
|
||||||
pipe:write(':call setline(1, "42")\n')
|
pipe:write(':call setline(1, "42")\n')
|
||||||
pipe:write(':wqall!\n')
|
pipe:write(':wqall!\n')
|
||||||
pipe:close()
|
pipe:close()
|
||||||
@@ -47,7 +48,7 @@ describe('Command-line option', function()
|
|||||||
it('does not expand $VAR', function()
|
it('does not expand $VAR', function()
|
||||||
eq(nil, lfs.attributes(fname))
|
eq(nil, lfs.attributes(fname))
|
||||||
eq(true, not not dollar_fname:find('%$%w+'))
|
eq(true, not not dollar_fname:find('%$%w+'))
|
||||||
write_file(dollar_fname, ':call setline(1, "100500")\n:wqall!\n')
|
write_file(dollar_fname, ':set fileformat=unix\n:call setline(1, "100500")\n:wqall!\n')
|
||||||
local stdout = repeated_read_cmd(
|
local stdout = repeated_read_cmd(
|
||||||
nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname,
|
nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname,
|
||||||
fname)
|
fname)
|
||||||
|
|||||||
Reference in New Issue
Block a user