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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user