diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-07-30 13:38:13 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2024-07-31 10:49:57 +0800 |
| commit | 619cb143f93fbf75adde9710415a74d36c8eb63d (patch) | |
| tree | 9596ca94c741f694adda53e95bb2ec98a3ca8566 /test/old/testdir/test_vimscript.vim | |
| parent | a1561cbbea55cc74d4dc880585f942f4a114c4b8 (diff) | |
| download | rneovim-619cb143f93fbf75adde9710415a74d36c8eb63d.tar.gz rneovim-619cb143f93fbf75adde9710415a74d36c8eb63d.tar.bz2 rneovim-619cb143f93fbf75adde9710415a74d36c8eb63d.zip | |
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: vim/vim#14789
https://github.com/vim/vim/commit/fe424d13ef6e5486923f23f15bb6951e3079412e
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'test/old/testdir/test_vimscript.vim')
| -rw-r--r-- | test/old/testdir/test_vimscript.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/old/testdir/test_vimscript.vim b/test/old/testdir/test_vimscript.vim index 28868a07d6..108321e8ad 100644 --- a/test/old/testdir/test_vimscript.vim +++ b/test/old/testdir/test_vimscript.vim @@ -7449,6 +7449,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 |
