comparison src/testdir/test_assert.vim @ 18031:8a2fb21c23c0 v8.1.2011

patch 8.1.2011: more functions can be used as methods Commit: https://github.com/vim/vim/commit/ce90e36f5969e733a0a919f1736453332c33aad6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 8 18:58:44 2019 +0200 patch 8.1.2011: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method. Make the window command test faster.
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Sep 2019 19:00:04 +0200
parents ce993ba17adb
children c0eb073378e7
comparison
equal deleted inserted replaced
18030:e7a81e948c12 18031:8a2fb21c23c0
257 call remove(v:errors, 0) 257 call remove(v:errors, 0)
258 endfunc 258 endfunc
259 259
260 func Test_override() 260 func Test_override()
261 call test_override('char_avail', 1) 261 call test_override('char_avail', 1)
262 call test_override('redraw', 1) 262 eval 1->test_override('redraw')
263 call test_override('ALL', 0) 263 call test_override('ALL', 0)
264 call assert_fails("call test_override('xxx', 1)", 'E475') 264 call assert_fails("call test_override('xxx', 1)", 'E475')
265 call assert_fails("call test_override('redraw', 'yes')", 'E474') 265 call assert_fails("call test_override('redraw', 'yes')", 'E474')
266 endfunc 266 endfunc
267 267