forked from aniani/vim
patch 9.1.0391: Vim9: could improve testing
Problem: Vim9: could improve testing
(Ernie Rael)
Solution: Support defcompile for test_override() to
improve testing (Yegappan Lakshmanan)
fixes: #14553
closes: #14712
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
c8330b8fff
commit
5715a72628
@@ -4633,6 +4633,19 @@ def Run_Test_keytyped_in_nested_function()
|
||||
g:StopVimInTerminal(buf)
|
||||
enddef
|
||||
|
||||
" Test for test_override('defcompile')
|
||||
def Test_test_override_defcompile()
|
||||
var lines =<< trim END
|
||||
vim9script
|
||||
def Foo()
|
||||
xxx
|
||||
enddef
|
||||
END
|
||||
test_override('defcompile', 1)
|
||||
v9.CheckScriptFailure(lines, 'E476: Invalid command: xxx')
|
||||
test_override('defcompile', 0)
|
||||
enddef
|
||||
|
||||
" The following messes up syntax highlight, keep near the end.
|
||||
if has('python3')
|
||||
def Test_python3_command()
|
||||
|
||||
Reference in New Issue
Block a user