Patch 8.2.5124
Problem: When syntax timeout test fails it does not show the time.
Solution: Use assert_inrange().
Files: src/testdir/test_syntax.vim
*** ../vim-8.2.5123/src/testdir/test_syntax.vim 2022-06-05 16:55:50.702774344
+0100
--- src/testdir/test_syntax.vim 2022-06-18 16:04:48.816677299 +0100
***************
*** 544,565 ****
syn match Error /\%#=1a*.*X\@<=b*/
redraw
let elapsed = reltimefloat(reltime(start))
! call assert_true(elapsed > min_timeout)
! call assert_true(elapsed < 1.0)
" second time syntax HL is disabled
let start = reltime()
redraw
let elapsed = reltimefloat(reltime(start))
! call assert_true(elapsed < 0.1)
" after CTRL-L the timeout flag is reset
let start = reltime()
exe "normal \<C-L>"
redraw
let elapsed = reltimefloat(reltime(start))
! call assert_true(elapsed > min_timeout)
! call assert_true(elapsed < 1.0)
set redrawtime&
bwipe!
--- 544,563 ----
syn match Error /\%#=1a*.*X\@<=b*/
redraw
let elapsed = reltimefloat(reltime(start))
! call assert_inrange(min_timeout, 1.0, elapsed)
" second time syntax HL is disabled
let start = reltime()
redraw
let elapsed = reltimefloat(reltime(start))
! call assert_inrange(0, 0.1, elapsed)
" after CTRL-L the timeout flag is reset
let start = reltime()
exe "normal \<C-L>"
redraw
let elapsed = reltimefloat(reltime(start))
! call assert_inrange(min_timeout, 1.0, elapsed)
set redrawtime&
bwipe!
*** ../vim-8.2.5123/src/version.c 2022-06-18 14:09:03.815925826 +0100
--- src/version.c 2022-06-18 16:02:46.432827690 +0100
***************
*** 736,737 ****
--- 736,739 ----
{ /* Add new patch number below this line */
+ /**/
+ 5124,
/**/
--
I used to wonder about the meaning of life. But I looked it
up in the dictionary under "L" and there it was - the meaning
of life. It was less than I expected. - Dogbert
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220618150605.00DFB1C12E9%40moolenaar.net.