mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
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:
parent
ed3c0a27c7
commit
ec273a2c6b
@ -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…
Reference in New Issue
Block a user