~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_diff.py

MergeĀ fromĀ test-kipple

Show diffs side-by-side

added added

removed removed

Lines of Context:
769
769
        self._PatienceSequenceMatcher = \
770
770
            bzrlib._patiencediff_py.PatienceSequenceMatcher_py
771
771
 
 
772
    def test_diff_unicode_string(self):
 
773
        a = ''.join([unichr(i) for i in range(4000, 4500, 3)])
 
774
        b = ''.join([unichr(i) for i in range(4300, 4800, 2)])
 
775
        sm = self._PatienceSequenceMatcher(None, a, b)
 
776
        mb = sm.get_matching_blocks()
 
777
        self.assertEquals(35, len(mb))
 
778
 
772
779
    def test_unique_lcs(self):
773
780
        unique_lcs = self._unique_lcs
774
781
        self.assertEquals(unique_lcs('', ''), [])