comparison src/testdir/test_partial.vim @ 8591:5bc958a92849 v7.4.1585

commit https://github.com/vim/vim/commit/d22a18928ebcb465393da1418bb88204b97badb1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 17 20:50:47 2016 +0100 patch 7.4.1585 Problem: Partial is not recognized everywhere. Solution: Check for partial in trans_function_name(). (Yasuhiro Matsumoto) Add a test.
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Mar 2016 21:00:04 +0100
parents ce37bbedcb65
children dc36cef103de
comparison
equal deleted inserted replaced
8590:d28bd403e1f1 8591:5bc958a92849
104 let s:obj2['clear'] = function('s:cache_clear') 104 let s:obj2['clear'] = function('s:cache_clear')
105 call assert_equal('bar', s:obj2.clear()) 105 call assert_equal('bar', s:obj2.clear())
106 let B = s:obj2.clear 106 let B = s:obj2.clear
107 call assert_equal('bar', B()) 107 call assert_equal('bar', B())
108 endfunc 108 endfunc
109
110 func Test_partial_exists()
111 let F = function('MyFunc')
112 call assert_true(exists('*F'))
113 let lF = [F]
114 call assert_true(exists('*lF[0]'))
115
116 let F = function('MyFunc', ['arg'])
117 call assert_true(exists('*F'))
118 let lF = [F]
119 call assert_true(exists('*lF[0]'))
120 endfunc