/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_tsort.py

  • Committer: Alexander Belchenko
  • Date: 2008-03-12 05:59:01 UTC
  • mfrom: (3266 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3267.
  • Revision ID: bialix@ukr.net-20080312055901-44umxb8uc3zs10fe
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from bzrlib.tests import TestCase
22
22
from bzrlib.tsort import topo_sort, TopoSorter, MergeSorter, merge_sort
23
23
from bzrlib.errors import GraphCycleError
 
24
from bzrlib.revision import NULL_REVISION
24
25
 
25
26
 
26
27
class TopoSortTests(TestCase):
112
113
        # sorting of an emptygraph does not error
113
114
        self.assertSortAndIterate({}, None, [], False)
114
115
        self.assertSortAndIterate({}, None, [], True)
 
116
        self.assertSortAndIterate({}, NULL_REVISION, [], False)
 
117
        self.assertSortAndIterate({}, NULL_REVISION, [], True)
115
118
 
116
119
    def test_merge_sort_not_empty_no_tip(self):
117
120
        # merge sorting of a branch starting with None should result