~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_diff.py

  • Committer: Robert Collins
  • Date: 2008-09-02 05:28:37 UTC
  • mfrom: (3675 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3677.
  • Revision ID: robertc@robertcollins.net-20080902052837-ec3qlv41q5e7f6fl
Resolve conflicts with NEWS.

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('', ''), [])