Patch 8.1.0389
Problem:    :behave command is not tested.
Solution:   Add a test. (Dominique Pelle, closes #3429)
Files:      src/Make_all.mak, src/testdir/test_alot.vim,
            src/testdir/test_behave.vim


*** ../vim-8.1.0388/src/Make_all.mak    2018-09-10 21:04:09.864392710 +0200
--- src/Make_all.mak    2018-09-14 20:07:48.456062947 +0200
***************
*** 14,19 ****
--- 14,20 ----
        test_autoload \
        test_backspace_opt \
        test_backup \
+       test_behave \
        test_blockedit \
        test_breakindent \
        test_bufline \
*** ../vim-8.1.0388/src/testdir/test_alot.vim   2018-09-10 21:04:09.872392623 
+0200
--- src/testdir/test_alot.vim   2018-09-14 20:07:48.456062947 +0200
***************
*** 3,8 ****
--- 3,9 ----
  
  source test_assign.vim
  source test_backup.vim
+ source test_behave.vim
  source test_bufline.vim
  source test_cd.vim
  source test_changedtick.vim
*** ../vim-8.1.0388/src/testdir/test_behave.vim 2018-09-14 20:10:11.270547147 
+0200
--- src/testdir/test_behave.vim 2018-09-14 20:07:48.456062947 +0200
***************
*** 0 ****
--- 1,29 ----
+ " Test the :behave command
+ 
+ func Test_behave()
+   behave mswin
+   call assert_equal('mouse,key', &selectmode)
+   call assert_equal('popup', &mousemodel)
+   call assert_equal('startsel,stopsel', &keymodel)
+   call assert_equal('exclusive', &selection)
+ 
+   behave xterm
+   call assert_equal('', &selectmode)
+   call assert_equal('extend', &mousemodel)
+   call assert_equal('', &keymodel)
+   call assert_equal('inclusive', &selection)
+ 
+   set selection&
+   set mousemodel&
+   set keymodel&
+   set selection&
+ endfunc
+ 
+ func Test_behave_completion()
+   call feedkeys(":behave \<C-A>\<C-B>\"\<CR>", 'tx')
+   call assert_equal('"behave mswin xterm', @:)
+ endfunc
+ 
+ func Test_behave_error()
+   call assert_fails('behave x', 'E475:')
+ endfunc
*** ../vim-8.1.0388/src/version.c       2018-09-13 21:30:01.622056753 +0200
--- src/version.c       2018-09-14 20:08:53.075367719 +0200
***************
*** 796,797 ****
--- 796,799 ----
  {   /* Add new patch number below this line */
+ /**/
+     389,
  /**/

-- 
Never go to the toilet in a paperless office.

 /// 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.

Raspunde prin e-mail lui