/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_diff.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-08-27 04:41:37 UTC
  • mfrom: (3650.1.1 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080827044137-4ox67ehr4bxtj7b0
Handle references to line data in _patiencediff_c.c properly (Lalinský)

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