mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.5127: using assert_true() does not show value on failure
Problem: Using assert_true() does not show value on failure. Solution: Use assert_inrange(). (closes #10593)
This commit is contained in:
parent
d6211a52ab
commit
cdc6a43559
@ -528,7 +528,7 @@ func Test_connect_waittime()
|
||||
call ch_close(handle)
|
||||
else
|
||||
let elapsed = reltime(start)
|
||||
call assert_true(reltimefloat(elapsed) < 1.0)
|
||||
call assert_inrange(0.0, 1.0, reltimefloat(elapsed))
|
||||
endif
|
||||
|
||||
" We intend to use a socket that doesn't exist and wait for half a second
|
||||
@ -1634,8 +1634,7 @@ func Test_exit_callback_interval()
|
||||
let g:exit_cb_val.process = job_info(job).process
|
||||
call WaitFor('type(g:exit_cb_val.end) != v:t_number || g:exit_cb_val.end != 0')
|
||||
let elapsed = reltimefloat(g:exit_cb_val.end)
|
||||
call assert_true(elapsed > 0.5)
|
||||
call assert_true(elapsed < 1.0)
|
||||
call assert_inrange(0.5, 1.0, elapsed)
|
||||
|
||||
" case: unreferenced job, using timer
|
||||
if !has('timers')
|
||||
|
@ -54,8 +54,7 @@ func Test_hlsearch_hangs()
|
||||
let @/ = '\%#=1a*.*X\@<=b*'
|
||||
redraw
|
||||
let elapsed = reltimefloat(reltime(start))
|
||||
call assert_true(elapsed > min_timeout)
|
||||
call assert_true(elapsed < 1.0)
|
||||
call assert_inrange(min_timeout, 1.0, elapsed)
|
||||
set nohlsearch redrawtime&
|
||||
bwipe!
|
||||
endfunc
|
||||
|
@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
5127,
|
||||
/**/
|
||||
5126,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user