# HG changeset patch # User Christian Brabandt # Date 1523790905 -7200 # Node ID f07e48d6650b85040d6528e5ce36039871c0c8d5 # Parent e501ec828a72d5f42f4655b04b4f1b2321c22a5e patch 8.0.1716: test for term_setsize() does not give a good error message commit https://github.com/vim/vim/commit/ac3e830065f1e54c422cdd2f3157fb35fac27e04 Author: Bram Moolenaar Date: Sun Apr 15 13:10:44 2018 +0200 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(). diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -283,8 +283,7 @@ func Test_terminal_scrollback() let rows = term_getsize(buf)[0] call WaitFor({-> term_getline(buf, rows - 1) =~ '149'}) let lines = line('$') - call assert_true(lines <= 100) - call assert_true(lines > 90) + call assert_inrange(91, 100, lines) call Stop_shell_in_terminal(buf) call term_wait(buf) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1716, +/**/ 1715, /**/ 1714,