comparison src/testdir/test_tagjump.vim @ 18000:7a19c8d6bb9e v8.1.1996

patch 8.1.1996: more functions can be used as methods Commit: https://github.com/vim/vim/commit/aad222c9c9a1e4fe6ae5a1fe95bb084619be0e65 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 6 22:46:09 2019 +0200 patch 8.1.1996: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Sep 2019 23:00:03 +0200
parents 9fac6d0de69a
children 1c5974759bcd
comparison
equal deleted inserted replaced
17999:9fd4d58b3e5b 18000:7a19c8d6bb9e
301 call assert_equal(stk, gettagstack().items) 301 call assert_equal(stk, gettagstack().items)
302 302
303 " Try to set current index to invalid values 303 " Try to set current index to invalid values
304 call settagstack(1, {'curidx' : -1}) 304 call settagstack(1, {'curidx' : -1})
305 call assert_equal(1, gettagstack().curidx) 305 call assert_equal(1, gettagstack().curidx)
306 call settagstack(1, {'curidx' : 50}) 306 eval {'curidx' : 50}->settagstack(1)
307 call assert_equal(4, gettagstack().curidx) 307 call assert_equal(4, gettagstack().curidx)
308 308
309 " Try pushing invalid items onto the stack 309 " Try pushing invalid items onto the stack
310 call settagstack(1, {'items' : []}) 310 call settagstack(1, {'items' : []})
311 call settagstack(1, {'items' : ["plate"]}, 'a') 311 call settagstack(1, {'items' : ["plate"]}, 'a')