diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-02-06 22:58:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 22:58:38 +0100 |
commit | 2a4c9c6e4573ebeaaf5d30aeb2c8a9ce2ecab0d5 (patch) | |
tree | a2ec5e3873226f665f1e809d415c46539811173e /test/functional/api/vim_spec.lua | |
parent | 0851057a8deaa1197bd0af22babb62c1146d836c (diff) | |
parent | 6744f48d884902483f95c9b89877da36032e2677 (diff) | |
download | rneovim-2a4c9c6e4573ebeaaf5d30aeb2c8a9ce2ecab0d5.tar.gz rneovim-2a4c9c6e4573ebeaaf5d30aeb2c8a9ce2ecab0d5.tar.bz2 rneovim-2a4c9c6e4573ebeaaf5d30aeb2c8a9ce2ecab0d5.zip |
Merge pull request #7844 from bfredl/shellout
shell: use msg functions for :!cmd so UTF-8 and binary is supported.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index a92acd36b1..0a0cb2e91c 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -15,6 +15,7 @@ local command = helpers.command 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) @@ -99,8 +100,9 @@ describe('api', function() [[echo nvim_command_output('echo "nested1\nnested2"') | ls]])) end) - it('does not return shell |:!| output', function() - eq(':!echo "foo"\r\n', nvim('command_output', [[!echo "foo"]])) + it('returns shell |:!| output', function() + local win_lf = (uname() == 'Windows' and '\r') or '' + eq(':!echo foo\r\n\nfoo'..win_lf..'\n', nvim('command_output', [[!echo foo]])) end) it("parse error: fails (specific error), does NOT update v:errmsg", function() |