diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-04 17:35:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-04 17:35:53 +0200 |
commit | a74e4946de074d2916e3d6004f7fa1810d12dda9 (patch) | |
tree | 7c9ef20c9c2b2aab3ce363697623e290a456ce6d /src/testdir/test_system.vim | |
parent | e4ce825a55ad2445a212ce30837a3af566b7af6b (diff) | |
download | vim-git-a74e4946de074d2916e3d6004f7fa1810d12dda9.tar.gz |
patch 8.1.1809: more functions can be used as a methodv8.1.1809
Problem: More functions can be used as a method.
Solution: Add has_key(), split(), str2list(), etc.
Diffstat (limited to 'src/testdir/test_system.vim')
-rw-r--r-- | src/testdir/test_system.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_system.vim b/src/testdir/test_system.vim index 25061ead1..f09f509b5 100644 --- a/src/testdir/test_system.vim +++ b/src/testdir/test_system.vim @@ -4,13 +4,13 @@ func Test_System() if !executable('echo') || !executable('cat') || !executable('wc') return endif - let out = system('echo 123') + let out = 'echo 123'->system() " On Windows we may get a trailing space. if out != "123 \n" call assert_equal("123\n", out) endif - let out = systemlist('echo 123') + let out = 'echo 123'->systemlist() " On Windows we may get a trailing space and CR. if out != ["123 \r"] call assert_equal(['123'], out) |