vim-patch:8.2.0270: some code not covered by tests

Problem:    Some code not covered by tests.
Solution:   Add test cases. (Yegappan Lakshmanan, closes vim/vim#5649)
bc2b71d44a
This commit is contained in:
zeertzjq
2022-07-12 08:28:56 +08:00
parent 6a670a00b3
commit d079995fb8
17 changed files with 399 additions and 9 deletions

View File

@@ -1857,6 +1857,16 @@ func Test_deep_nest()
call delete('Xscript')
endfunc
" Test for <sfile>, <slnum> in a function {{{1
func Test_sfile_in_function()
func Xfunc()
call assert_match('..Test_sfile_in_function\[5]..Xfunc', expand('<sfile>'))
call assert_equal('2', expand('<slnum>'))
endfunc
call Xfunc()
delfunc Xfunc
endfunc
func Test_for_over_string()
let res = ''
for c in 'aéc̀d'