diff_cleanupSemantic not working in python3 port
Opened this issue · 0 comments
DSLituiev commented
The documentation test case silently fails:
from diff_match_patch import diff_match_patch as DMP
dmp = DMP()
x1 = "Good dog"
x2 = "Bad dog"
diffs = dmp.diff_main(x1, x2)
print(diffs)
dmp.diff_cleanupSemantic(diffs)
print(diffs)
both result in
[(-1, 'Goo'), (1, 'Ba'), (0, 'd dog')]