From 5f604145b8d33ae061bd4b4b47e256b152d1f4d1 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 6 Jul 2020 00:30:06 -0400 Subject: [PATCH] Do not use dynamic key in dict --- test/workflow.vader | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/workflow.vader b/test/workflow.vader index 4766f14..8ea5114 100644 --- a/test/workflow.vader +++ b/test/workflow.vader @@ -86,14 +86,18 @@ Execute (Test Plug command): Execute (Plug command with dictionary option): Log string(g:plugs) for opt in ['branch', 'tag', 'commit', 'rtp', 'dir', 'as'] + let opts = {} + let opts[opt] = '' redir => out - silent Plug 'foo/bar.vim', {opt: ''} + silent Plug 'foo/bar.vim', opts redir END Assert out =~ 'Invalid argument for "'.opt.'" option of :Plug (expected: string)' endfor for opt in ['on', 'for'] + let opts = {} + let opts[opt] = '' redir => out - silent Plug 'foo/bar.vim', {opt: ''} + silent Plug 'foo/bar.vim', opts redir END Assert out =~ 'Invalid argument for "'.opt.'" option of :Plug (expected: string or list)' endfor