diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-18 17:54:04 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-19 14:13:21 +0300 |
commit | 38687ee394150061c24e45b44cbeb9cfbb4be142 (patch) | |
tree | 0bfa7fa130690cd3485ddcf99848544ffb39081b /test/functional/core/main_spec.lua | |
parent | 1ea7541f657e64c843b97b25ec75dd388ee916cc (diff) | |
download | rneovim-38687ee394150061c24e45b44cbeb9cfbb4be142.tar.gz rneovim-38687ee394150061c24e45b44cbeb9cfbb4be142.tar.bz2 rneovim-38687ee394150061c24e45b44cbeb9cfbb4be142.zip |
functests: Make sure that line ending is LF and not CRLF
Diffstat (limited to 'test/functional/core/main_spec.lua')
-rw-r--r-- | test/functional/core/main_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/core/main_spec.lua b/test/functional/core/main_spec.lua index 59969538fa..60c89ec6c8 100644 --- a/test/functional/core/main_spec.lua +++ b/test/functional/core/main_spec.lua @@ -28,6 +28,7 @@ describe('Command-line option', function() local pipe = popen_w( nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', '-', fname) + pipe:write(':set fileformat=unix\n') pipe:write(':call setline(1, "42")\n') pipe:write(':wqall!\n') pipe:close() @@ -47,7 +48,7 @@ describe('Command-line option', function() it('does not expand $VAR', function() eq(nil, lfs.attributes(fname)) 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( nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname, fname) |