1
0
forked from aniani/vim

patch 9.1.0415: Some functions are not tested

Problem:  Some functions are not tested
Solution: Add a few more tests, fix a few minor problems
          (Yegappan Lakshmanan)

closes: #14789

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2024-05-17 18:20:43 +02:00
committed by Christian Brabandt
parent e595e9c31b
commit fe424d13ef
16 changed files with 184 additions and 14 deletions

View File

@@ -7509,6 +7509,13 @@ func Test_for_over_string()
let res ..= c .. '-'
endfor
call assert_equal('', res)
" Test for ignoring loop var assignment
let c = 0
for _ in 'abc'
let c += 1
endfor
call assert_equal(3, c)
endfunc
" Test for deeply nested :source command {{{1