Home | History | Annotate | Download | only in test

Lines Matching refs:diff

90         diff = list(difflib.Differ().compare(["\tI am a buggy"],["\t\tI am a bug"]))
91 self.assertEqual("- \tI am a buggy", diff[0])
92 self.assertEqual("? --\n", diff[1])
93 self.assertEqual("+ \t\tI am a bug", diff[2])
94 self.assertEqual("? +\n", diff[3])
197 '<h2>Context (first diff within numlines=5(default))</h2>',
199 '<h2>Context (first diff after numlines=5(default))</h2>',
284 # Per the diff spec at http://www.unix.org/single_unix_specification/
301 # Per the diff spec at http://www.unix.org/single_unix_specification/
328 def check(self, diff):
329 diff = list(diff) # trigger exceptions first
330 for line in diff:
333 "all lines of diff should be bytes, but got: %r" % line)
355 # same all over again, with context diff
405 # patch, and it's how UNIX(tm) diff behaves