diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-15 13:10:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-15 13:10:44 +0200 |
commit | ac3e830065f1e54c422cdd2f3157fb35fac27e04 (patch) | |
tree | 5c29e7ac4018203d2cc8a38a83ace1f22d06edde /src/testdir/test_terminal.vim | |
parent | 8c94a549051cc4d4cbb8cabd321724a85fe40c23 (diff) | |
download | vim-ac3e830065f1e54c422cdd2f3157fb35fac27e04.zip |
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().
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r-- | src/testdir/test_terminal.vim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index 95a131be7..6e101cfc9 100644 --- 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) |