Yasuhiro Matsumoto wrote:
> On Monday, November 30, 2015 at 10:41:21 AM UTC+9, Ryuichi Hayashida wrote:
> > I think assertion message is very important reported when it fails. Should
> > message be customizable as many assertions in other languages?
> >
> > assertEqual({exp}, {act} [, {msg}])
> > assertFalse({actual} [, {msg}])
> > assertTrue({actual} [, {msg}])
> >
> > This is used as below.
> >
> > assertTrue(check_something(label), 'something failed with ' . label)
>
> Here is a patch.
>
> https://gist.github.com/mattn/e6405f257bae62ccfe54
Thanks. I would prefer to get rid of some duplication. We can assume
there will be more assert functions later.
--
hundred-and-one symptoms of being an internet addict:
163. You go outside for the fresh air (at -30 degrees) but open the
window first to hear new mail arrive.
/// 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.