diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-05-03 18:24:07 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-05-03 18:27:51 +0200 |
commit | 5715a726282018e708cff7dd930c9f8f7c37fa7e (patch) | |
tree | f6c0049084d51445a5d1bd00d47447981707b16f /src/testdir/test_vim9_func.vim | |
parent | c8330b8fff8e44c450a606ba91c1fec5f41478f7 (diff) |
patch 9.1.0391: Vim9: could improve testingv9.1.0391
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>
Diffstat (limited to 'src/testdir/test_vim9_func.vim')
-rw-r--r-- | src/testdir/test_vim9_func.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim index b008929611..d07bbfba70 100644 --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -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() |