]> granicus.if.org Git - vim/commitdiff
patch 8.2.4265: autoload tests fails v8.2.4265
authorBram Moolenaar <Bram@vim.org>
Sun, 30 Jan 2022 18:56:35 +0000 (18:56 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 30 Jan 2022 18:56:35 +0000 (18:56 +0000)
Problem:    Autoload tests fails.
Solution:   Use export instead of name with #.

src/testdir/sautest/autoload/auto9.vim
src/testdir/test_autoload.vim
src/testdir/test_ins_complete.vim
src/version.c

index c89ce3a33d5651d82b4af5360be2172e0df26e03..fad1fa781d2397c9cb48cc06d06fc8c07e269c10 100644 (file)
@@ -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
index 21de65563df17a0da22d683dd8c7e618b35165ff..835b81e27ef52d219b15055b0f3b5c11434107de 100644 (file)
@@ -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
 
 
index 35cacf23bac29583efcff68172c3c3620522724c..933f4434be816f9ac4c52d8428e481e51d0c92d7 100644 (file)
@@ -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!
index 3799493ffc5ca0b2186693c464eafaf319e6d530..e2d59070b656f7f08e44238341976caa0e744b81 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4265,
 /**/
     4264,
 /**/