Skip to content

Assertion Error and endless loop conditions #10

@jspv

Description

@jspv

The following demonstrates a failure to merge:

python -c 'import merge; print(merge.merge("abcdef","abde","abcde"))'

Traceback (most recent call last):
File "", line 1, in
File "/test/merge.py", line 230, in merge
assert target_status == ADDITION or source_status == PRESERVED
AssertionError

The following results in an endless loop:

python -c 'import merge; print(merge.merge("abcdef","abd","abcde"))'

Python 3.9.1
diff-match-patch==20200713

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions