Mercurial > hg
view tests/test-bdiff.py.out @ 30593:4286015285ec
tests: update more of test-bdiff.py to use unittest (part 3 of 4)
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 15 Dec 2016 10:56:26 -0500 |
parents | 0d8cada9998d |
children |
line wrap: on
line source
Nice diff for a trivial change: showdiff( '<0\n-\n<1\n-\n<2\n-\n<3\n-\n<4\n-\n', '>0\n-\n>1\n-\n>2\n-\n>3\n-\n>4\n-\n'): 0 3 '<0\n' -> '>0\n' '-\n' 5 8 '<1\n' -> '>1\n' '-\n' 10 13 '<2\n' -> '>2\n' '-\n' 15 18 '<3\n' -> '>3\n' '-\n' 20 23 '<4\n' -> '>4\n' '-\n' Diff 1 to 3 lines - preference for appending: showdiff( 'a\n', 'a\na\na\n'): 'a\n' 2 2 '' -> 'a\na\n' Diff 1 to 5 lines - preference for appending: showdiff( 'a\n', 'a\na\na\na\na\n'): 'a\n' 2 2 '' -> 'a\na\na\na\n' Diff 3 to 1 lines - preference for removing trailing lines: showdiff( 'a\na\na\n', 'a\n'): 'a\n' 2 6 'a\na\n' -> '' Diff 5 to 1 lines - preference for removing trailing lines: showdiff( 'a\na\na\na\na\n', 'a\n'): 'a\n' 2 10 'a\na\na\na\n' -> ''