diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-07 09:57:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-07 09:57:23 +0100 |
commit | 366528130e397a6173789072c08b9afa5efd0423 (patch) | |
tree | d41bd3f486d87842fa65108a072de465e2dee4bf /test/functional/api/vim_spec.lua | |
parent | 538361955d123d9c93387f7597303c0ef59c6825 (diff) | |
parent | 35a789278128bfe5d28e4c61ac7fa727042fd30a (diff) | |
download | rneovim-366528130e397a6173789072c08b9afa5efd0423.tar.gz rneovim-366528130e397a6173789072c08b9afa5efd0423.tar.bz2 rneovim-366528130e397a6173789072c08b9afa5efd0423.zip |
Merge #6713 'tests for :! output'
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 0a0cb2e91c..1faed4e9b1 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -11,11 +11,11 @@ local funcs = helpers.funcs local request = helpers.request local meth_pcall = helpers.meth_pcall local command = helpers.command +local iswin = helpers.iswin local intchar2lua = global_helpers.intchar2lua local format_string = global_helpers.format_string local mergedicts_copy = global_helpers.mergedicts_copy -local uname = global_helpers.uname describe('api', function() before_each(clear) @@ -101,7 +101,7 @@ describe('api', function() end) it('returns shell |:!| output', function() - local win_lf = (uname() == 'Windows' and '\r') or '' + local win_lf = iswin() and '\r' or '' eq(':!echo foo\r\n\nfoo'..win_lf..'\n', nvim('command_output', [[!echo foo]])) end) |