diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-12-29 19:23:51 +0000 |
---|---|---|
committer | Seth Jackson <sethjackson@gmail.com> | 2015-12-31 23:28:55 -0500 |
commit | a48508de0dd745cba94debe63f0695447f4ac82f (patch) | |
tree | 9e09bdfb60a017b747990e4dd41e4df6b7e1a45c /test/functional/helpers.lua | |
parent | 04cd3eef248c174d5092165e558071a3de3aaef0 (diff) | |
download | rneovim-a48508de0dd745cba94debe63f0695447f4ac82f.tar.gz rneovim-a48508de0dd745cba94debe63f0695447f4ac82f.tar.bz2 rneovim-a48508de0dd745cba94debe63f0695447f4ac82f.zip |
test/functional: Fix api/vim_spec.lua.
On Windows the default file format is DOS i.e. newlines are \r\n
instead of \n.
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 9562457c8e..67c5a6f626 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -323,6 +323,10 @@ local function expect(contents) return eq(dedent(contents), curbuf_contents()) end +local function os_is_windows() + return nvim_eval('has("win32")') == 1 +end + local function rmdir(path) if lfs.attributes(path, 'mode') ~= 'directory' then return nil @@ -425,6 +429,7 @@ return { wait = wait, set_session = set_session, write_file = write_file, + os_is_windows = os_is_windows, rmdir = rmdir, mkdir = lfs.mkdir, exc_exec = exc_exec, |