forked from aniani/vim
patch 8.2.4601: Vim9: not enough test coverage for executing :def function
Problem: Vim9: not enough test coverage for executing :def function. Solution: Add a few more tests.
This commit is contained in:
@@ -2003,6 +2003,12 @@ def Test_for_loop()
|
||||
endfor
|
||||
assert_equal(6, total)
|
||||
|
||||
total = 0
|
||||
for b in 0z010203
|
||||
total += b
|
||||
endfor
|
||||
assert_equal(6, total)
|
||||
|
||||
var chars = ''
|
||||
for s: string in 'foobar'
|
||||
chars ..= s
|
||||
|
||||
Reference in New Issue
Block a user