Skip to content

Commit

Permalink
patch 8.2.4265: autoload tests fails
Browse files Browse the repository at this point in the history
Problem:    Autoload tests fails.
Solution:   Use export instead of name with #.
  • Loading branch information
brammool committed Jan 30, 2022
1 parent d8fe6d3 commit 6a05807
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/testdir/sautest/autoload/auto9.vim
@@ -1,9 +1,9 @@
vim9script

func auto9#getsome()
export func Getsome()
return 'some'
endfunc

def auto9#add42(count: number): number
export def Add42(count: number): number
return count + 42
enddef
4 changes: 2 additions & 2 deletions src/testdir/test_autoload.vim
Expand Up @@ -22,8 +22,8 @@ func Test_source_autoload()
endfunc

func Test_autoload_vim9script()
call assert_equal('some', auto9#getsome())
call assert_equal(49, auto9#add42(7))
call assert_equal('some', auto9#Getsome())
call assert_equal(49, auto9#Add42(7))
endfunc


Expand Down
4 changes: 2 additions & 2 deletions src/testdir/test_ins_complete.vim
Expand Up @@ -148,7 +148,7 @@ func Test_omni_autoload()

let lines =<< trim END
vim9script
def omni#func(findstart: bool, base: string): any
export def Func(findstart: bool, base: string): any
if findstart
return 1
else
Expand All @@ -162,7 +162,7 @@ func Test_omni_autoload()
call writefile(lines, dir .. '/omni.vim')

new
setlocal omnifunc=omni#func
setlocal omnifunc=omni#Func
call feedkeys("i\<C-X>\<C-O>\<Esc>", 'xt')

bwipe!
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4265,
/**/
4264,
/**/
Expand Down

0 comments on commit 6a05807

Please sign in to comment.