Mercurial > vim
diff src/testdir/test_system.vim @ 17624:4c7097a980a5 v8.1.1809
patch 8.1.1809: more functions can be used as a method
commit https://github.com/vim/vim/commit/a74e4946de074d2916e3d6004f7fa1810d12dda9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 4 17:35:53 2019 +0200
patch 8.1.1809: more functions can be used as a method
Problem: More functions can be used as a method.
Solution: Add has_key(), split(), str2list(), etc.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Aug 2019 17:45:05 +0200 |
parents | 63b02fcf1361 |
children | 131f1d8c5860 |
line wrap: on
line diff
--- 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)