Patch 8.2.0993
Problem:    Vim9 script test fails with normal features.
Solution:   Use :func instead of :def for now.
Files:      src/testdir/test_vim9_script.vim


*** ../vim-8.2.0992/src/testdir/test_vim9_script.vim    2020-06-16 
23:18:48.116416938 +0200
--- src/testdir/test_vim9_script.vim    2020-06-17 12:04:35.453876302 +0200
***************
*** 778,784 ****
    assert_fails('export something', 'E1043')
  enddef
  
! def Test_import_fails_without_script()
    CheckRunVimInTerminal
  
    let export =<< trim END
--- 778,784 ----
    assert_fails('export something', 'E1043')
  enddef
  
! func Test_import_fails_without_script()
    CheckRunVimInTerminal
  
    let export =<< trim END
***************
*** 787,801 ****
          return 0
      enddef
    END
!   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))})
  
!   delete('Xexport.vim')
!   StopVimInTerminal(buf)
! enddef
  
  def Test_vim9script_reload_import()
    let lines =<< trim END
--- 787,800 ----
          return 0
      enddef
    END
!   call writefile(export, 'Xexport.vim')
  
!   let buf = RunVimInTerminal('-c "import Foo from ''./Xexport.vim''"', 
#{rows: 6, wait_for_ruler: 0})
!   call WaitForAssert({-> assert_match('^E1094:', term_getline(buf, 5))})
  
!   call delete('Xexport.vim')
!   call StopVimInTerminal(buf)
! endfunc
  
  def Test_vim9script_reload_import()
    let lines =<< trim END
*** ../vim-8.2.0992/src/version.c       2020-06-16 23:18:48.116416938 +0200
--- src/version.c       2020-06-17 11:58:54.498771114 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     993,
  /**/

-- 
5 out of 4 people have trouble with fractions.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202006171005.05HA5JKZ024381%40masaka.moolenaar.net.

Raspunde prin e-mail lui