Mercurial > vim
changeset 27474:307341b9c227 v8.2.4265
patch 8.2.4265: autoload tests fails
Commit: https://github.com/vim/vim/commit/6a058070924928f1b2bdb11f345229074904d8bd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 30 18:56:35 2022 +0000
patch 8.2.4265: autoload tests fails
Problem: Autoload tests fails.
Solution: Use export instead of name with #.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Jan 2022 20:00:04 +0100 |
parents | 1e7b91cb3bb4 |
children | a724d370c4cf |
files | src/testdir/sautest/autoload/auto9.vim src/testdir/test_autoload.vim src/testdir/test_ins_complete.vim src/version.c |
diffstat | 4 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/sautest/autoload/auto9.vim +++ b/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
--- a/src/testdir/test_autoload.vim +++ b/src/testdir/test_autoload.vim @@ -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
--- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -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 @@ -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!