diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-05-25 20:14:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-25 20:14:00 +0200 |
commit | 34fcb697240c1bc9e69417ed75db3b1a83479724 (patch) | |
tree | aaad1ed8d12bdcd32bf178eac8c7a17259bb529a /src/testdir/test_listdict.vim | |
parent | 872bee557e5f8ab0e4a523a6a845868a2801b17e (diff) | |
download | vim-git-34fcb697240c1bc9e69417ed75db3b1a83479724.tar.gz |
patch 8.2.2886: various pieces of code not covered by testsv8.2.2886
Problem: Various pieces of code not covered by tests.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8255)
Diffstat (limited to 'src/testdir/test_listdict.vim')
-rw-r--r-- | src/testdir/test_listdict.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_listdict.vim b/src/testdir/test_listdict.vim index 601dd17e5..46b030b86 100644 --- a/src/testdir/test_listdict.vim +++ b/src/testdir/test_listdict.vim @@ -513,6 +513,11 @@ func Test_list_locked_var_unlet() call assert_equal(expected[depth][u][1], ps) endfor endfor + " Deleting a list range should fail if the range is locked + let l = [1, 2, 3, 4] + lockvar l[1:2] + call assert_fails('unlet l[1:2]', 'E741:') + unlet l endfunc " Locked variables and :unlet or list / dict functions |