Christian Brabandt wrote:

> On Do, 04 Aug 2016, Dominique Pellé wrote:
> 
> > Attached patch improves coverage of cscope tests.
> 
> Great!
> 
> 
> > cscope command line completion is still not tested.
> > I'm not sure how it could be tested. i.e. how to check
> > for example that the output of...
> > 
> > :cscope find <C-D>
> > 
> > ... is:
> > 
> > a  c  d  e  f  g  i  s  t
> 
> Yeah, looks like this is hard to get. I played around with
> :echo getcompletion('find', 'cscope') -> returns ['find']
> :echo getcompletion('find *', 'cscope') -> returns []
> :echo getcompletion('', 'cscope') -> returns ['add', 'find', 'help', 'kill', 
> 'reset', 'show']
> so this does not work.
> 
> Tried:
> :let cmd=":cscope find \<c-d>\<esc>"
> :let a=execute(':call feedkeys(cmd, "t")')
> -> this outputs the result, but does not capture it
> (same happens with :redir)
> 
> 
> So I am not sure, how to test the commandline completion.

Perhaps this works after patch 7.4.2158.

-- 
ARTHUR:    ... and I am your king ....
OLD WOMAN: Ooooh!  I didn't know we had a king.  I thought we were an
           autonomous collective ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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