comparison src/testdir/test_listdict.vim @ 24695:13efbfc53054 v8.2.2886

patch 8.2.2886: various pieces of code not covered by tests Commit: https://github.com/vim/vim/commit/34fcb697240c1bc9e69417ed75db3b1a83479724 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Tue May 25 20:14:00 2021 +0200 patch 8.2.2886: various pieces of code not covered by tests Problem: Various pieces of code not covered by tests. Solution: Add a few more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8255)
author Bram Moolenaar <Bram@vim.org>
date Tue, 25 May 2021 20:15:03 +0200
parents 4aebea72c397
children 5f8dd7b3ae41
comparison
equal deleted inserted replaced
24694:44426ac4b715 24695:13efbfc53054
511 let ps .= 'F' 511 let ps .= 'F'
512 endtry 512 endtry
513 call assert_equal(expected[depth][u][1], ps) 513 call assert_equal(expected[depth][u][1], ps)
514 endfor 514 endfor
515 endfor 515 endfor
516 " Deleting a list range should fail if the range is locked
517 let l = [1, 2, 3, 4]
518 lockvar l[1:2]
519 call assert_fails('unlet l[1:2]', 'E741:')
520 unlet l
516 endfunc 521 endfunc
517 522
518 " Locked variables and :unlet or list / dict functions 523 " Locked variables and :unlet or list / dict functions
519 524
520 " No :unlet after lock on dict: 525 " No :unlet after lock on dict: