This commit is contained in:
Jan Edmund Lazo 2020-07-05 21:09:27 -04:00
parent aa6c2846b0
commit 9c806ad127
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -50,7 +50,7 @@ Execute (Test Plug command):
^ Git repo with tag (DEPRECATED. USE TAG OPTION) ^ Git repo with tag (DEPRECATED. USE TAG OPTION)
redir => out redir => out
Plug 'foo/bar.vim', '' silent Plug 'foo/bar.vim', ''
redir END redir END
Assert out =~ 'Invalid argument for "tag" option of :Plug (expected: string)' Assert out =~ 'Invalid argument for "tag" option of :Plug (expected: string)'
Plug 'junegunn/goyo.vim', '1.5.2' Plug 'junegunn/goyo.vim', '1.5.2'
@ -59,7 +59,7 @@ Execute (Test Plug command):
AssertEqual '1.5.2', g:plugs['goyo.vim'].tag AssertEqual '1.5.2', g:plugs['goyo.vim'].tag
redir => out redir => out
Plug 'foo/bar.vim', {'tag': ''} silent Plug 'foo/bar.vim', {'tag': ''}
redir END redir END
Assert out =~ 'Invalid argument for "tag" option of :Plug (expected: string)' Assert out =~ 'Invalid argument for "tag" option of :Plug (expected: string)'
Plug 'junegunn/goyo.vim', { 'tag': '1.5.3' } " Using tag option Plug 'junegunn/goyo.vim', { 'tag': '1.5.3' } " Using tag option
@ -87,18 +87,18 @@ Execute (Plug command with dictionary option):
Log string(g:plugs) Log string(g:plugs)
for opt in ['branch', 'tag', 'commit', 'rtp', 'dir', 'as'] for opt in ['branch', 'tag', 'commit', 'rtp', 'dir', 'as']
redir => out redir => out
Plug 'foo/bar.vim', {opt: ''} silent Plug 'foo/bar.vim', {opt: ''}
redir END redir END
Assert out =~ 'Invalid argument for "'.opt.'" option of :Plug (expected: string)' Assert out =~ 'Invalid argument for "'.opt.'" option of :Plug (expected: string)'
endfor endfor
for opt in ['on', 'for'] for opt in ['on', 'for']
redir => out redir => out
Plug 'foo/bar.vim', {opt: ''} silent Plug 'foo/bar.vim', {opt: ''}
redir END redir END
Assert out =~ 'Invalid argument for "'.opt.'" option of :Plug (expected: string or list)' Assert out =~ 'Invalid argument for "'.opt.'" option of :Plug (expected: string or list)'
endfor endfor
redir => out redir => out
Plug 'foo/bar.vim', {'do': ''} silent Plug 'foo/bar.vim', {'do': ''}
redir END redir END
Assert out =~ 'Invalid argument for "do" option of :Plug (expected: string or funcref)' Assert out =~ 'Invalid argument for "do" option of :Plug (expected: string or funcref)'
Plug 'junegunn/seoul256.vim', { 'branch': 'no-t_co', 'rtp': '././' } Plug 'junegunn/seoul256.vim', { 'branch': 'no-t_co', 'rtp': '././' }