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:
@@ -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
|
||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
993,
|
||||
/**/
|
||||
992,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user