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>
diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim
index 0c4aedb..c135304 100644
--- a/src/testdir/test_vimscript.vim
+++ b/src/testdir/test_vimscript.vim
@@ -7509,6 +7509,13 @@
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