~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_dirstate.py

Start cleaning up the code, and fix one more edge case
when last_entry == first_entry, we don't want to have duplicated entries
in the output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1122
1122
        self.assertBisect([[expected['']]], state, [''])
1123
1123
        self.assertBisect([[expected['a'], expected['a2']]], state, ['a'])
1124
1124
        self.assertBisect([[expected['b'], expected['b2']]], state, ['b'])
 
1125
        self.assertBisect([[expected['b/c'], expected['b/c2']]], state, ['b/c'])
 
1126
        self.assertBisect([[expected['b/d'], expected['b/d2']]], state, ['b/d'])
 
1127
        self.assertBisect([[expected['b/d/e'], expected['b/d/e2']]],
 
1128
                          state, ['b/d/e'])
 
1129
        self.assertBisect([[expected['f'], expected['f2']]], state, ['f'])
1125
1130
 
1126
1131
    def test_bisect_page_size_too_small(self):
1127
1132
        """If the page size is too small, we will auto increase it."""