Patch 8.1.0189
Problem: Function defined in sandbox not tested.
Solution: Add a text.
Files: src/testdir/test_functions.vim
*** ../vim-8.1.0188/src/testdir/test_functions.vim Tue Jun 19 19:46:01 2018
--- src/testdir/test_functions.vim Tue Jul 10 19:30:01 2018
***************
*** 984,986 ****
--- 984,1002 ----
call assert_fails("call libcall('Xdoesnotexist_', 'getenv', 'HOME')",
'E364:')
call assert_fails("call libcallnr('Xdoesnotexist_', 'strlen', 'abcd')",
'E364:')
endfunc
+
+ sandbox function Fsandbox()
+ normal ix
+ endfunc
+
+ func Test_func_sandbox()
+ sandbox let F = {-> 'hello'}
+ call assert_equal('hello', F())
+
+ sandbox let F = {-> execute("normal ix\<Esc>")}
+ call assert_fails('call F()', 'E48:')
+ unlet F
+
+ call assert_fails('call Fsandbox()', 'E48:')
+ delfunc Fsandbox
+ endfunc
*** ../vim-8.1.0188/src/version.c Sun Jul 15 17:36:28 2018
--- src/version.c Sun Jul 15 20:22:12 2018
***************
*** 791,792 ****
--- 791,794 ----
{ /* Add new patch number below this line */
+ /**/
+ 189,
/**/
--
hundred-and-one symptoms of being an internet addict:
252. You vote for foreign officials.
/// 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].
For more options, visit https://groups.google.com/d/optout.