[PATCH 0 of 5] Add 'unified' tests to the test framework

Matt Mackall mpm at selenic.com
Thu Aug 12 20:25:29 CDT 2010


On Fri, 2010-08-13 at 09:03 +0900, Nicolas Dumazet wrote:
> 2010/8/13 Adrian Buehlmann <adrian at cadifra.com>:
> > On 12.08.2010 21:51, Matt Mackall wrote:
> >> On Thu, 2010-08-12 at 18:15 +0100, Christian Ebert wrote:
> >>> I see quite a lot of trailing whitespace, e.g. on empty lines,
> >>> in the new *.t files, ahem, <duck>
> >>
> >> Yeah, we're going to need to teach check-code about these files too.
> >>
> >
> > 'hg log' causes an empty line at the end on its output, which results in
> > a line containing only two spaces in *.t
> 
> Exactly. In this particular case, those trailing spaces are "normal".
> 
> A point that can be improved is space in continuations. run-tests
> assumes that a continuation starts with
> "  > ". Which means that if you ident a Python script for instance,
> empty lines will be changed into "  > ", with a trailing space.
> Matt, I guess that a line consisting only of "  >" (no trailing space)
> could safely be interpreted a continuation line?

Sure.

On a related note, we might want to consider converting non-printable
characters like escape characters to an escaped format.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list