equal
deleted
inserted
replaced
48 pos += l |
48 pos += l |
49 showdiff("x\n\nx\n\nx\n\nx\n\nz\n", "x\n\nx\n\ny\n\nx\n\nx\n\nz\n") |
49 showdiff("x\n\nx\n\nx\n\nx\n\nz\n", "x\n\nx\n\ny\n\nx\n\nx\n\nz\n") |
50 showdiff("x\n\nx\n\nx\n\nx\n\nz\n", "x\n\nx\n\ny\n\nx\n\ny\n\nx\n\nz\n") |
50 showdiff("x\n\nx\n\nx\n\nx\n\nz\n", "x\n\nx\n\ny\n\nx\n\ny\n\nx\n\nz\n") |
51 |
51 |
52 print "done" |
52 print "done" |
|
53 |
|
54 def testfixws(a, b, allws): |
|
55 c = bdiff.fixws(a, allws) |
|
56 if c != b: |
|
57 print "*** fixws", repr(a), repr(b), allws |
|
58 print "got:" |
|
59 print repr(c) |
|
60 |
|
61 testfixws(" \ta\r b\t\n", "ab\n", 1) |
|
62 testfixws(" \ta\r b\t\n", " a b\n", 0) |
|
63 testfixws("", "", 1) |
|
64 testfixws("", "", 0) |
|
65 |
|
66 print "done" |