0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4265: autoload tests fails

Problem:    Autoload tests fails.
Solution:   Use export instead of name with #.
This commit is contained in:
Bram Moolenaar
2022-01-30 18:56:35 +00:00
parent d8fe6d34bb
commit 6a05807092
4 changed files with 8 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
vim9script vim9script
func auto9#getsome() export func Getsome()
return 'some' return 'some'
endfunc endfunc
def auto9#add42(count: number): number export def Add42(count: number): number
return count + 42 return count + 42
enddef enddef

View File

@@ -22,8 +22,8 @@ func Test_source_autoload()
endfunc endfunc
func Test_autoload_vim9script() func Test_autoload_vim9script()
call assert_equal('some', auto9#getsome()) call assert_equal('some', auto9#Getsome())
call assert_equal(49, auto9#add42(7)) call assert_equal(49, auto9#Add42(7))
endfunc endfunc

View File

@@ -148,7 +148,7 @@ func Test_omni_autoload()
let lines =<< trim END let lines =<< trim END
vim9script vim9script
def omni#func(findstart: bool, base: string): any export def Func(findstart: bool, base: string): any
if findstart if findstart
return 1 return 1
else else
@@ -162,7 +162,7 @@ func Test_omni_autoload()
call writefile(lines, dir .. '/omni.vim') call writefile(lines, dir .. '/omni.vim')
new new
setlocal omnifunc=omni#func setlocal omnifunc=omni#Func
call feedkeys("i\<C-X>\<C-O>\<Esc>", 'xt') call feedkeys("i\<C-X>\<C-O>\<Esc>", 'xt')
bwipe! bwipe!

View File

@@ -750,6 +750,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 */
/**/
4265,
/**/ /**/
4264, 4264,
/**/ /**/