forked from aniani/vim
patch 8.2.1619: Vim9: cannot pass "true" to spellsuggest()
Problem: Vim9: cannot pass "true" to spellsuggest(). Solution: Use tv_get_bool_chk(). (closes #6883)
This commit is contained in:
@@ -1628,6 +1628,14 @@ def Test_setreg()
|
||||
assert_equal(reginfo, getreginfo('a'))
|
||||
enddef
|
||||
|
||||
def Test_spellsuggest()
|
||||
if !has('spell')
|
||||
MissingFeature 'spell'
|
||||
else
|
||||
spellsuggest('marrch', 1, true)->assert_equal(['March'])
|
||||
endif
|
||||
enddef
|
||||
|
||||
def Test_synID()
|
||||
new
|
||||
setline(1, "text")
|
||||
|
||||
Reference in New Issue
Block a user