Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diff_cleanupSemantic not working in python3 port #112

Open
DSLituiev opened this issue Mar 4, 2024 · 0 comments
Open

diff_cleanupSemantic not working in python3 port #112

DSLituiev opened this issue Mar 4, 2024 · 0 comments

Comments

@DSLituiev
Copy link

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')]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant