summaryrefslogtreecommitdiff
path: root/src/testdir/test_usercommands.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-23 13:38:02 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-23 13:38:02 +0200
commitea04a6e8baff2f27da7cdd54bf70a5525994f76d (patch)
treed8578e5bec3f99d462191ba6eb49f83c60211181 /src/testdir/test_usercommands.vim
parentdb950e4c0318c084c31bc7b50665284f4a47c285 (diff)
downloadvim-git-ea04a6e8baff2f27da7cdd54bf70a5525994f76d.tar.gz
patch 8.2.0619: null dict is not handled like an empty dictv8.2.0619
Problem: Null dict is not handled like an empty dict. Solution: Fix the code and add tests. (Yegappan Lakshmanan, closes #5968)
Diffstat (limited to 'src/testdir/test_usercommands.vim')
-rw-r--r--src/testdir/test_usercommands.vim10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testdir/test_usercommands.vim b/src/testdir/test_usercommands.vim
index 0f0049569..7f87e27ae 100644
--- a/src/testdir/test_usercommands.vim
+++ b/src/testdir/test_usercommands.vim
@@ -587,17 +587,17 @@ func Test_usercmd_custom()
return "a\nb\n"
endfunc
command -nargs=* -complete=customlist,T1 TCmd1
- call feedkeys(":T1 \<C-A>\<C-B>\"\<CR>", 'xt')
- call assert_equal('"T1 ', @:)
+ call feedkeys(":TCmd1 \<C-A>\<C-B>\"\<CR>", 'xt')
+ call assert_equal('"TCmd1 ', @:)
delcommand TCmd1
delfunc T1
func T2(a, c, p)
- return ['a', 'b', 'c']
+ return {}
endfunc
command -nargs=* -complete=customlist,T2 TCmd2
- call feedkeys(":T2 \<C-A>\<C-B>\"\<CR>", 'xt')
- call assert_equal('"T2 ', @:)
+ call feedkeys(":TCmd2 \<C-A>\<C-B>\"\<CR>", 'xt')
+ call assert_equal('"TCmd2 ', @:)
delcommand TCmd2
delfunc T2
endfunc