1
0
forked from aniani/vim

patch 8.2.1576: Vim9: index() does not take "true" as argument

Problem:    Vim9: index() does not take "true" as argument.
Solution:   Use tv_get_bool_chk(). (closes #6823)
This commit is contained in:
Bram Moolenaar
2020-09-02 22:10:34 +02:00
parent f966ce5ea2
commit 6c553f9c04
3 changed files with 7 additions and 1 deletions

View File

@@ -1497,6 +1497,10 @@ def Test_count()
assert_equal(0, count('ABC ABC ABC', 'b', false))
enddef
def Test_index()
assert_equal(3, index(['a', 'b', 'a', 'B'], 'b', 2, true))
enddef
def Test_expand()
split SomeFile
assert_equal(['SomeFile'], expand('%', true, true))