[PATCH 2 of 2] templates/filters: add doctest to the 'person' filter

Yann E. MORIN yann.morin.1998 at free.fr
Wed Mar 7 02:42:58 CST 2012


Gilles, All,

On Wednesday 07 March 2012 09:07:22 Gilles Moris wrote:
> On Wednesday 07 March 2012 01:32:39 am Yann E. MORIN wrote:
[--SNIP--]
> > +    >>> p = '"Foo Bar <foo at bar>'
> > +    >>> person(p)
> > +    Foo "buz" Bar
> 
> For this last case, you mean: Foo Bar
> Right?

Of course, yes.
This is a good indication that the test-suite did not exercise this doctest.
Any suggestion on how I can do it?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< O_o >==-- '------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
'------------------------------'-------'------------------'--------------------'


More information about the Mercurial-devel mailing list