Mercurial > vim
comparison src/testdir/test_timers.vim @ 29994:86eb4aba16c3 v9.0.0335
patch 9.0.0335: checks for Dictionary argument often give a vague error
Commit: https://github.com/vim/vim/commit/04c4c5746e15884768d2cb41370c3276a196cd4c
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Aug 30 19:48:24 2022 +0100
patch 9.0.0335: checks for Dictionary argument often give a vague error
Problem: Checks for Dictionary argument often give a vague error message.
Solution: Give a useful error message. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/11009)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 30 Aug 2022 21:00:05 +0200 |
parents | 5da38c4ffe92 |
children | fd855ad74887 |
comparison
equal
deleted
inserted
replaced
29993:8dd1900432a0 | 29994:86eb4aba16c3 |
---|---|
263 " Timer will be stopped after failing 3 out of 3 times. | 263 " Timer will be stopped after failing 3 out of 3 times. |
264 call WaitForAssert({-> assert_equal(3, g:call_count)}) | 264 call WaitForAssert({-> assert_equal(3, g:call_count)}) |
265 sleep 50m | 265 sleep 50m |
266 call assert_equal(3, g:call_count) | 266 call assert_equal(3, g:call_count) |
267 | 267 |
268 call assert_fails('call timer_start(100, "MyHandler", "abc")', 'E475:') | 268 call assert_fails('call timer_start(100, "MyHandler", "abc")', 'E1206:') |
269 call assert_fails('call timer_start(100, [])', 'E921:') | 269 call assert_fails('call timer_start(100, [])', 'E921:') |
270 call assert_fails('call timer_stop("abc")', 'E39:') | 270 call assert_fails('call timer_stop("abc")', 'E39:') |
271 endfunc | 271 endfunc |
272 | 272 |
273 func FuncWithCaughtError(timer) | 273 func FuncWithCaughtError(timer) |