[Svnmerge] [PATCH] Add test for RevisionSet.sorted()
Daniel Rall
dlr at collab.net
Mon Apr 3 09:36:54 PDT 2006
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/svnmerge/attachments/20060403/a3d6f772/attachment.pgp
More information about the Svnmerge
mailing list