mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user