changeset 13688:f07e48d6650b v8.0.1716

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 <Bram@vim.org> 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().
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Apr 2018 13:15:05 +0200
parents e501ec828a72
children e8e253f1cca7
files src/testdir/test_terminal.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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,