To: vim_dev@googlegroups.com Subject: Patch 8.0.1716 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1716 Problem: Test for term_setsize() does not give a good error message. Solution: use assert_inrange(). Files: src/testdir/test_terminal.vim *** ../vim-8.0.1715/src/testdir/test_terminal.vim 2018-04-14 21:31:32.096297041 +0200 --- src/testdir/test_terminal.vim 2018-04-15 12:58:08.462659019 +0200 *************** *** 283,290 **** 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 Stop_shell_in_terminal(buf) call term_wait(buf) --- 283,289 ---- let rows = term_getsize(buf)[0] call WaitFor({-> term_getline(buf, rows - 1) =~ '149'}) let lines = line('$') ! call assert_inrange(91, 100, lines) call Stop_shell_in_terminal(buf) call term_wait(buf) *** ../vim-8.0.1715/src/version.c 2018-04-15 12:55:09.335988841 +0200 --- src/version.c 2018-04-15 13:09:16.273855410 +0200 *************** *** 764,765 **** --- 764,767 ---- { /* Add new patch number below this line */ + /**/ + 1716, /**/ -- hundred-and-one symptoms of being an internet addict: 182. You may not know what is happening in the world, but you know every bit of net-gossip there is. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///