forked from aniani/vim
patch 9.0.0430: cannot use repeat() with a blob
Problem: Cannot use repeat() with a blob. Solution: Implement blob repeat. (closes #11090)
This commit is contained in:
committed by
Bram Moolenaar
parent
0adae2da17
commit
375141e1f8
@@ -2533,6 +2533,12 @@ def Test_repeat_return_type()
|
||||
endfor
|
||||
res->assert_equal(3)
|
||||
|
||||
res = 0
|
||||
for n in repeat(0z01, 3)->blob2list()
|
||||
res += n
|
||||
endfor
|
||||
res->assert_equal(3)
|
||||
|
||||
res = 0
|
||||
for n in add([1, 2], 3)
|
||||
res += n
|
||||
|
||||
Reference in New Issue
Block a user