Mercurial > vim
diff src/testdir/test_eval_stuff.vim @ 21267:7833afe1c66e v8.2.1184
patch 8.2.1184: some tests fail
Commit: https://github.com/vim/vim/commit/2b6ef856fb89f703714f3f1f567d9bd7c81079f3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 11 22:25:57 2020 +0200
patch 8.2.1184: some tests fail
Problem: Some tests fail.
Solution: Adjust tests for different assert_fails() behavior. Remove unused
variable.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Jul 2020 22:30:08 +0200 |
parents | a672feb8fc4f |
children | 140a9082f87c |
line wrap: on
line diff
--- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -1,5 +1,7 @@ " Tests for various eval things. +source view_util.vim + function s:foo() abort try return [] == 0 @@ -17,13 +19,8 @@ func Test_nocatch_restore_silent_emsg() throw 1 catch endtry - echoerr 'wrong' - let c1 = nr2char(screenchar(&lines, 1)) - let c2 = nr2char(screenchar(&lines, 2)) - let c3 = nr2char(screenchar(&lines, 3)) - let c4 = nr2char(screenchar(&lines, 4)) - let c5 = nr2char(screenchar(&lines, 5)) - call assert_equal('wrong', c1 . c2 . c3 . c4 . c5) + echoerr 'wrong again' + call assert_equal('wrong again', ScreenLine(&lines)) endfunc func Test_mkdir_p()