comparison src/testdir/test_arglist.vim @ 17916:2e53305f2239 v8.1.1954

patch 8.1.1954: more functions can be used as a method Commit: https://github.com/vim/vim/commit/02b31110d31e995326080807716e79e38fe501df Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 31 22:16:38 2019 +0200 patch 8.1.1954: more functions can be used as a method Problem: More functions can be used as a method. Solution: Allow more functions to be used as a method.
author Bram Moolenaar <Bram@vim.org>
date Sat, 31 Aug 2019 22:30:03 +0200
parents 285f7a700185
children 02111977dd05
comparison
equal deleted inserted replaced
17915:50ad0353c88a 17916:2e53305f2239
86 call writefile(['test', 'Xargadd'], 'Xargadd') 86 call writefile(['test', 'Xargadd'], 'Xargadd')
87 " must not re-use the current buffer. 87 " must not re-use the current buffer.
88 argadd Xargadd 88 argadd Xargadd
89 call assert_equal(curbuf, bufnr('%')) 89 call assert_equal(curbuf, bufnr('%'))
90 call assert_equal('', bufname('%')) 90 call assert_equal('', bufname('%'))
91 call assert_equal(1, line('$')) 91 call assert_equal(1, '$'->line())
92 rew 92 rew
93 call assert_notequal(curbuf, '%'->bufnr()) 93 call assert_notequal(curbuf, '%'->bufnr())
94 call assert_equal('Xargadd', '%'->bufname()) 94 call assert_equal('Xargadd', '%'->bufname())
95 call assert_equal(2, line('$')) 95 call assert_equal(2, line('$'))
96 96