0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -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') assert_fails('export something', 'E1043')
enddef enddef
def Test_import_fails_without_script() func Test_import_fails_without_script()
CheckRunVimInTerminal CheckRunVimInTerminal
let export =<< trim END let export =<< trim END
@@ -787,15 +787,14 @@ def Test_import_fails_without_script()
return 0 return 0
enddef enddef
END END
writefile(export, 'Xexport.vim') call writefile(export, 'Xexport.vim')
let buf = RunVimInTerminal('-c "import Foo from ''./Xexport.vim''"', #{ let buf = RunVimInTerminal('-c "import Foo from ''./Xexport.vim''"', #{rows: 6, wait_for_ruler: 0})
rows: 6, wait_for_ruler: 0}) call WaitForAssert({-> assert_match('^E1094:', term_getline(buf, 5))})
WaitForAssert({-> assert_match('^E1094:', term_getline(buf, 5))})
delete('Xexport.vim') call delete('Xexport.vim')
StopVimInTerminal(buf) call StopVimInTerminal(buf)
enddef endfunc
def Test_vim9script_reload_import() def Test_vim9script_reload_import()
let lines =<< trim END let lines =<< trim END

View File

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