mirror of
https://github.com/vim/vim.git
synced 2025-10-07 05:54:16 -04:00
patch 8.0.1716: test for term_setsize() does not give a good error message
Problem: Test for term_setsize() does not give a good error message. Solution: use assert_inrange().
This commit is contained in:
@@ -283,8 +283,7 @@ func Test_terminal_scrollback()
|
|||||||
let rows = term_getsize(buf)[0]
|
let rows = term_getsize(buf)[0]
|
||||||
call WaitFor({-> term_getline(buf, rows - 1) =~ '149'})
|
call WaitFor({-> term_getline(buf, rows - 1) =~ '149'})
|
||||||
let lines = line('$')
|
let lines = line('$')
|
||||||
call assert_true(lines <= 100)
|
call assert_inrange(91, 100, lines)
|
||||||
call assert_true(lines > 90)
|
|
||||||
|
|
||||||
call Stop_shell_in_terminal(buf)
|
call Stop_shell_in_terminal(buf)
|
||||||
call term_wait(buf)
|
call term_wait(buf)
|
||||||
|
@@ -762,6 +762,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1716,
|
||||||
/**/
|
/**/
|
||||||
1715,
|
1715,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user