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.
This commit is contained in:
Jan Edmund Lazo 2021-04-08 18:48:43 -04:00
parent ed3c0a27c7
commit ec273a2c6b
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -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')