Patch 8.2.1955
Problem: Vim9: not all command modifiers are tested.
Solution: Add tests for remaining modifiers.
Files: src/testdir/test_vim9_cmd.vim
*** ../vim-8.2.1954/src/testdir/test_vim9_cmd.vim 2020-11-04
18:02:41.221407563 +0100
--- src/testdir/test_vim9_cmd.vim 2020-11-04 18:52:56.974195631 +0100
***************
*** 478,492 ****
enddef
def Test_command_modifier_other()
! # TODO
! # hide
! # noautocmd
! # noswapfile
! # sandbox
! # silent
! # silent!
! # unsilent
! # verbose
enddef
def Test_range_after_command_modifier()
--- 478,539 ----
enddef
def Test_command_modifier_other()
! new Xsomefile
! setline(1, 'changed')
! var buf = bufnr()
! hide edit Xotherfile
! var info = getbufinfo(buf)
! assert_equal(1, info[0].hidden)
! assert_equal(1, info[0].changed)
! edit Xsomefile
! bwipe!
!
! au BufNewFile Xfile g:readFile = 1
! g:readFile = 0
! edit Xfile
! assert_equal(1, g:readFile)
! bwipe!
! g:readFile = 0
! noautocmd edit Xfile
! assert_equal(0, g:readFile)
!
! noswapfile edit XnoSwap
! assert_equal(0, &l:swapfile)
! bwipe!
!
! var caught = false
! try
! sandbox !ls
! catch /E48:/
! caught = true
! endtry
! assert_true(caught)
!
! :8verbose g:verbose_now = &verbose
! assert_equal(8, g:verbose_now)
! unlet g:verbose_now
! enddef
!
! def EchoHere()
! echomsg 'here'
! enddef
! def EchoThere()
! unsilent echomsg 'there'
! enddef
!
! def Test_modifier_silent_unsilent()
! echomsg 'last one'
! silent echomsg "text"
! assert_equal("\nlast one", execute(':1messages'))
!
! silent! echoerr "error"
!
! echomsg 'last one'
! silent EchoHere()
! assert_equal("\nlast one", execute(':1messages'))
!
! silent EchoThere()
! assert_equal("\nthere", execute(':1messages'))
enddef
def Test_range_after_command_modifier()
***************
*** 587,603 ****
CheckScriptSuccess(lines)
enddef
- def Test_modifier_silent()
- echomsg 'last one'
- silent echomsg "text"
- redir => g:testmsg
- :1messages
- redir END
- assert_equal("\nlast one", g:testmsg)
- unlet g:testmsg
-
- silent! echoerr "error"
- enddef
-
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
--- 634,638 ----
*** ../vim-8.2.1954/src/version.c 2020-11-04 18:02:41.221407563 +0100
--- src/version.c 2020-11-04 18:13:29.659905506 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1955,
/**/
--
Some of the well known MS-Windows errors:
ESLEEP Operator fell asleep
ENOERR No error yet
EDOLLAR OS too expensive
EWINDOWS MS-Windows loaded, system in danger
/// 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/202011041754.0A4Hs44v4105500%40masaka.moolenaar.net.