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:
Sean Dewar
2021-08-06 18:10:30 +01:00
parent 003c8acc8a
commit aa2dc8b7b4
6 changed files with 67 additions and 22 deletions

View File

@@ -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