comparison src/testdir/test_expand_func.vim @ 17849:73ddc462979d v8.1.1921

patch 8.1.1921: more functions can be used as methods Commit: https://github.com/vim/vim/commit/a4208966fb289a505ebdef62bbc37c214069bab4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 24 20:50:19 2019 +0200 patch 8.1.1921: 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 Sat, 24 Aug 2019 21:00:05 +0200
parents 81be817c9d9a
children 6d3c683466f4
comparison
equal deleted inserted replaced
17848:19be0b17e0b9 17849:73ddc462979d
66 endfunc 66 endfunc
67 67
68 func Test_expand() 68 func Test_expand()
69 new 69 new
70 call assert_equal("", expand('%:S')) 70 call assert_equal("", expand('%:S'))
71 call assert_equal('3', expand('<slnum>')) 71 call assert_equal('3', '<slnum>'->expand())
72 call assert_equal(['4'], expand('<slnum>', v:false, v:true)) 72 call assert_equal(['4'], expand('<slnum>', v:false, v:true))
73 " Don't add any line above this, otherwise <slnum> will change. 73 " Don't add any line above this, otherwise <slnum> will change.
74 quit 74 quit
75 endfunc 75 endfunc