mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00
vim-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.
a74e4946de
This commit is contained in:
@@ -7,10 +7,10 @@ func Test_System()
|
||||
if !executable('echo') || !executable('cat') || !executable('wc')
|
||||
return
|
||||
endif
|
||||
let out = system('echo 123')
|
||||
let out = 'echo 123'->system()
|
||||
call assert_equal("123\n", out)
|
||||
|
||||
let out = systemlist('echo 123')
|
||||
let out = 'echo 123'->systemlist()
|
||||
if &shell =~# 'cmd.exe$'
|
||||
call assert_equal(["123\r"], out)
|
||||
else
|
||||
|
Reference in New Issue
Block a user