The same double space applies to assert_true() but not to
assert_equal(), for instance:

:let v:errors = []
:call assert_equal(1,2)
:echo v:errors
[' line 0: expected 1 but got 2']
with an unexpected space at the very start but only one space between
1 and but, and none after 2.

IMHO this whole question is of minimal import though. One space before
"but" would be ideal; two are acceptable; zero are not.

Best regards,
Tony.

On Mon, Dec 14, 2015 at 3:13 AM, watiko <wat...@mail.watiko.net> wrote:
> Hi, lists.
>
> Problem:
> call assert_false(1)
> then we expected v:errors is
> [" line 0: Expected False but got 1"]
> but actual value is
> [" line 0: Expected False  but got 1"]
>
> diff --git src/eval.c src/eval.c
> index 2668f3d..81dc478 100644
> --- src/eval.c
> +++ src/eval.c
> @@ -9183,10 +9183,13 @@ fill_assert_error(gap, opt_msg_tv, exp_str, exp_tv,
> got_tv)
>   {
>      ga_concat(gap, tv2string(exp_tv, &tofree, numbuf, 0));
>      vim_free(tofree);
> +    ga_concat(gap, (char_u *)" but got ");
>   }
>   else
> + {
>      ga_concat(gap, exp_str);
> - ga_concat(gap, (char_u *)" but got ");
> +    ga_concat(gap, (char_u *)"but got ");
> + }
>   ga_concat(gap, tv2string(got_tv, &tofree, numbuf, 0));
>   vim_free(tofree);
>      }
>
> Thx,
> watiko
>
> --
> --
> 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 vim_dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui