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

Re: [Svnmerge] [PATCH] Add test for RevisionSet.sorted()

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-04-03 18:36:54 CEST

> Index: contrib/client-side/svnmerge_test.py
> ===================================================================
> --- contrib/client-side/svnmerge_test.py (revision 19130)
> +++ contrib/client-side/svnmerge_test.py (working copy)
> @@ -100,6 +100,12 @@
> self.assertEqual(rs.normalized(), [(1,1), (3,6), (8,18)])
> self.assertEqual(str(rs), "1,3-6,8-18")
>
> + def test_sorted(self):
> + '''Test the sorted() function of the RevisionSet class.'''
> + rs = svnmerge.RevisionSet("8-15,16-18, 4-6, 9, 18, 1-1, 3-3")
> + self.assertEqual(rs.sorted(), [1, 3, 4, 5, 6, 8, 9, 10, 11, \
> + 12, 13, 14, 15, 16, 17, 18])
           ^

Spacing was off here because you used a tab. I made the whitespace
adjustments, tweaked the quoting on the doc string, and committed as
r19133. Thanks Madan!

-- 
Daniel Rall

  • application/pgp-signature attachment: stored
Received on Mon Apr 3 18:38:18 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.