Skip to content

Commit

Permalink
patch 8.0.1716: test for term_setsize() does not give a good error me…
Browse files Browse the repository at this point in the history
…ssage

Problem:    Test for term_setsize() does not give a good error message.
Solution:   use assert_inrange().
  • Loading branch information
brammool committed Apr 15, 2018
1 parent 8c94a54 commit ac3e830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/testdir/test_terminal.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1716,
/**/
1715,
/**/
Expand Down

0 comments on commit ac3e830

Please sign in to comment.