Patch 8.2.0993

5 views
Skip to first unread message

Bram Moolenaar

unread,
Jun 17, 2020, 6:05:31 AM6/17/20
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages