]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.1716: test for term_setsize() does not give a good error message v8.0.1716
authorBram Moolenaar <Bram@vim.org>
Sun, 15 Apr 2018 11:10:44 +0000 (13:10 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 15 Apr 2018 11:10:44 +0000 (13:10 +0200)
Problem:    Test for term_setsize() does not give a good error message.
Solution:   use assert_inrange().

src/testdir/test_terminal.vim
src/version.c

index 95a131be7467c078bd73412788c6e52513d7dd70..6e101cfc9bd736e10316024fc64681ea88f10d93 100644 (file)
@@ -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)
index 6ac76faeb8c3a54b63c131f5b38c2846042bf6ec..1c6c15d2270736f0aadc9b0ed70d66e651f19d4b 100644 (file)
@@ -762,6 +762,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1716,
 /**/
     1715,
 /**/