[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Ordering of output for diff tests #29 and #31

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2006-03-28 12:06:29 CEST

On Mon, Mar 27, 2006 at 06:01:35PM -0800, Justin Erenkrantz wrote:
> Our regression tests for diff #29 (diff to BASE with local property
> mods) and #31 (diff a property change plus a local prop edit) expect a
> specific ordering that the client will return the diff in.
>

I'd been hoping to fix the order by sorting the order of reported-on
entries inside the reporter code (thus achieving a stable ordering for
diffs), though it hadn't occurred to me that the ordering would also be
influenced by the access method. Hmp.

> Anybody have any ideas on how to best tweak the suite to handle this?
> AFAICT, it can match one line via regex or multiple lines as an exact
> match. We sort of need something in the middle, but I'm not quite
> sure what that would be.
>

Ideally, I'd like to be able to say 'the diff has all of these chunks,
but it doesn't matter what order they arrive in'. That would allow us
to continue providing test cases with complete expected output, which I
find are both a lot easier to understand - and a lot better at detecting
errors - than programmatic testing of the form 'there must be a filename
like <regexp> followed by a line with a minus sign at the start'.

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 28 12:07:09 2006

This is an archived mail posted to the Subversion Dev mailing list.