Skip to content

Commit ac3e830

Browse files
committed
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().
1 parent 8c94a54 commit ac3e830

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/testdir/test_terminal.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ func Test_terminal_scrollback()
283283
let rows = term_getsize(buf)[0]
284284
call WaitFor({-> term_getline(buf, rows - 1) =~ '149'})
285285
let lines = line('$')
286-
call assert_true(lines <= 100)
287-
call assert_true(lines > 90)
286+
call assert_inrange(91, 100, lines)
288287

289288
call Stop_shell_in_terminal(buf)
290289
call term_wait(buf)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ static char *(features[]) =
762762

763763
static int included_patches[] =
764764
{ /* Add new patch number below this line */
765+
/**/
766+
1716,
765767
/**/
766768
1715,
767769
/**/

0 commit comments

Comments
 (0)