diff options
author | Daniel Hahler <git@thequod.de> | 2019-11-29 09:49:32 +0100 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-30 21:55:51 -0400 |
commit | aca002e7d5ac5e85c8d3e3402afd2b0b5aff0c0c (patch) | |
tree | a475a224056822854172e4ecb7007a0165f90815 | |
parent | 7268d49c50d01a841a32856cfc5713ae8de2fc96 (diff) | |
download | rneovim-aca002e7d5ac5e85c8d3e3402afd2b0b5aff0c0c.tar.gz rneovim-aca002e7d5ac5e85c8d3e3402afd2b0b5aff0c0c.tar.bz2 rneovim-aca002e7d5ac5e85c8d3e3402afd2b0b5aff0c0c.zip |
test
-rw-r--r-- | test/functional/ex_cmds/dict_notifications_spec.lua | 12 |
1 files 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')) |