forked from aniani/vim
patch 8.2.4678: Vim9: not all code is tested
Problem: Vim9: not all code is tested. Solution: Add a few more tests.
This commit is contained in:
@@ -2130,6 +2130,17 @@ def Test_for_loop()
|
||||
endfor
|
||||
assert_equal('', res)
|
||||
|
||||
total = 0
|
||||
for c in null_list
|
||||
total += 1
|
||||
endfor
|
||||
assert_equal(0, total)
|
||||
|
||||
for c in null_blob
|
||||
total += 1
|
||||
endfor
|
||||
assert_equal(0, total)
|
||||
|
||||
var foo: list<dict<any>> = [
|
||||
{a: 'Cat'}
|
||||
]
|
||||
|
Reference in New Issue
Block a user