Patch 8.0.1799
Problem:    No test for :registers command.
Solution:   Add a test. (Dominique Pelle, closes #2880)
Files:      src/testdir/test_registers.vim


*** ../vim-8.0.1798/src/testdir/test_registers.vim      2017-07-16 
17:55:53.325531419 +0200
--- src/testdir/test_registers.vim      2018-05-06 17:30:57.940539020 +0200
***************
*** 25,27 ****
--- 25,65 ----
  
      bwipe!
  endfunc
+ 
+ func Test_display_registers()
+     e file1
+     e file2
+     call setline(1, ['foo', 'bar'])
+     /bar
+     exe 'norm! y2l"axx'
+     call feedkeys("i\<C-R>=2*4\n\<esc>")
+     call feedkeys(":ls\n", 'xt')
+ 
+     let a = execute('display')
+     let b = execute('registers')
+ 
+     call assert_equal(a, b)
+     call assert_match('^\n--- Registers ---\n'
+           \ .         '""   a\n'
+           \ .         '"0   ba\n'
+           \ .         '"1   b\n'
+           \ .         '"a   b\n'
+           \ .         '.*'
+           \ .         '"-   a\n'
+           \ .         '.*'
+           \ .         '":   ls\n'
+           \ .         '"%   file2\n'
+           \ .         '"#   file1\n'
+           \ .         '"/   bar\n'
+           \ .         '"=   2\*4', a)
+ 
+     let a = execute('registers a')
+     call assert_match('^\n--- Registers ---\n'
+           \ .         '"a   b', a)
+ 
+     let a = execute('registers :')
+     call assert_match('^\n--- Registers ---\n'
+           \ .         '":   ls', a)
+ 
+     bwipe!
+ endfunc
*** ../vim-8.0.1798/src/version.c       2018-05-06 17:09:34.536395626 +0200
--- src/version.c       2018-05-06 17:31:39.884274999 +0200
***************
*** 763,764 ****
--- 763,766 ----
  {   /* Add new patch number below this line */
+ /**/
+     1799,
  /**/

-- 
Windows
M!uqoms

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