0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0993: Vim9 script test fails with normal features

Problem:    Vim9 script test fails with normal features.
Solution:   Use :func instead of :def for now.
This commit is contained in:
Bram Moolenaar
2020-06-17 12:04:54 +02:00
parent 101f4810e2
commit f7d267ef20
2 changed files with 9 additions and 8 deletions

View File

@@ -778,7 +778,7 @@ def Test_vim9script_fails()
assert_fails('export something', 'E1043')
enddef
def Test_import_fails_without_script()
func Test_import_fails_without_script()
CheckRunVimInTerminal
let export =<< trim END
@@ -787,15 +787,14 @@ def Test_import_fails_without_script()
return 0
enddef
END
writefile(export, 'Xexport.vim')
call writefile(export, 'Xexport.vim')
let buf = RunVimInTerminal('-c "import Foo from ''./Xexport.vim''"', #{
rows: 6, wait_for_ruler: 0})
WaitForAssert({-> assert_match('^E1094:', term_getline(buf, 5))})
let buf = RunVimInTerminal('-c "import Foo from ''./Xexport.vim''"', #{rows: 6, wait_for_ruler: 0})
call WaitForAssert({-> assert_match('^E1094:', term_getline(buf, 5))})
delete('Xexport.vim')
StopVimInTerminal(buf)
enddef
call delete('Xexport.vim')
call StopVimInTerminal(buf)
endfunc
def Test_vim9script_reload_import()
let lines =<< trim END

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
993,
/**/
992,
/**/