~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_tsort.py

  • Committer: Aaron Bentley
  • Date: 2007-06-21 01:58:29 UTC
  • mto: This revision was merged to the branch mainline in revision 2542.
  • Revision ID: aaron.bentley@utoronto.ca-20070621015829-b62l2d1ehuvgnr3x
Fix iter_topo_order to permit un-included parents

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
                                   (8, [0, 1, 4, 5, 6])]),
86
86
                                  [0, 1, 2, 3, 4, 5, 6, 7, 8])
87
87
 
 
88
    def test_tsort_unincluded_parent(self):
 
89
        """Sort nodes, but don't include some parents in the output"""
 
90
        self.assertSortAndIterate([(0, [1]),
 
91
                                   (1, [2])],
 
92
                                   [1, 0])
 
93
 
88
94
 
89
95
class MergeSortTests(TestCase):
90
96