Hi,

On Tue, Feb 18, 2020 at 11:11 AM Dominique Pellé <[email protected]>
wrote:

> *@dpelle* commented on this pull request.
> ------------------------------
>
> In src/testdir/test_arglist.vim
> <https://github.com/vim/vim/pull/5659#discussion_r380876485>:
>
> > @@ -519,6 +519,18 @@ func Test_quit_with_arglist()
>
>    call term_sendkeys(buf, ":quit\n")
>
>    call WaitForAssert({-> assert_match('^E173:', term_getline(buf, 6))})
>
>    call StopVimInTerminal(buf)
>
> +
>
> +  " Try :confirm quit with unedited files in arglist
>
> +  let buf = RunVimInTerminal('', {'rows': 6})
>
> +  call term_sendkeys(buf, ":set nomore\n")
>
> +  call term_sendkeys(buf, ":args a b c\n")
>
> +  call term_sendkeys(buf, ":confirm quit\n")
>
> +  call WaitForAssert({-> assert_match('\[Y\]es, (N)o: ', term_getline(buf, 
> 6))})
>
> +  call term_sendkeys(buf, "N")
>
> +  call term_sendkeys(buf, ":confirm quit\n")
>
> +  call WaitForAssert({-> assert_match('\[Y\]es, (N)o: ', term_getline(buf, 
> 6))})
>
>
> Can't that be more precise with something like…
>
> assert_match('^\[Y\]es, (N)o: *$', term_getline(buf, 6))
>
>
Yes. It can be more precise. I will update the PR.

Regards,
Yegappan

-- 
-- 
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/CAAW7x7n9bmB4_EKZa%3DGVGRWgwh8Yh7Gi1B-BRu1QJ90f97aGjA%40mail.gmail.com.

Raspunde prin e-mail lui