From aca002e7d5ac5e85c8d3e3402afd2b0b5aff0c0c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 29 Nov 2019 09:49:32 +0100 Subject: [PATCH] test --- test/functional/ex_cmds/dict_notifications_spec.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/functional/ex_cmds/dict_notifications_spec.lua b/test/functional/ex_cmds/dict_notifications_spec.lua index 3e6c248411..6830587961 100644 --- a/test/functional/ex_cmds/dict_notifications_spec.lua +++ b/test/functional/ex_cmds/dict_notifications_spec.lua @@ -375,16 +375,22 @@ describe('VimL dictionary notifications', function() source([[ let g:d = {} - function! W(...) - call dictwatcherdel(g:d, '*', function('W')) + function! W1(...) + " Delete current and following watcher. + call dictwatcherdel(g:d, '*', function('W1')) + call dictwatcherdel(g:d, '*', function('W2')) try call dictwatcherdel({}, 'meh', function('tr')) catch let g:exc = v:exception endtry endfunction + call dictwatcheradd(g:d, '*', function('W1')) + + function! W2(...) + endfunction + call dictwatcheradd(g:d, '*', function('W2')) - call dictwatcheradd(g:d, '*', function('W')) let g:d.foo = 23 ]]) eq(23, eval('g:d.foo'))