Browse Source

vim-patch:8.2.0623: typo in test comment

Problem:    Typo in test comment. (Christ van Willegen)
Solution:   Avoid mixing up a data structure with a body part.
f7b398c6a9

Cherry-pick Test_dict_lock_operator() from patch v8.2.0619.
pull/14326/head
Jan Edmund Lazo 1 month ago
parent
commit
ec273a2c6b
No known key found for this signature in database GPG Key ID: 64915E6E9F735B15
  1. 9
      src/nvim/testdir/test_listdict.vim

9
src/nvim/testdir/test_listdict.vim

@ -506,6 +506,15 @@ func Test_dict_lock_extend()
call assert_equal({'a': 99, 'b': 100}, d)
endfunc
" Cannot use += with a locked dict
func Test_dict_lock_operator()
unlet! d
let d = {}
lockvar d
call assert_fails("let d += {'k' : 10}", 'E741:')
unlockvar d
endfunc
" No remove() of write-protected scope-level variable
func! Tfunc(this_is_a_long_parameter_name)
call assert_fails("call remove(a:, 'this_is_a_long_parameter_name')", 'E742')

Loading…
Cancel
Save