Closed Themayu closed 2 years ago
Hi! Thanks for the bug report! :grinning:
I just pushed a commit with the fix. The commit message and the diff should be enough to explain what caused the bug and why the fix works, in case you're interested.
I've also published version 0.2.3 of levenshtein-diff to crates.io, and this contains the fix for this bug, so please update to that.
I'll be closing this issue, but if it persists even with 0.2.3, feel free to reopen it and I'll be happy to investigate further! :)
Calculating the distance between two collections, where one collection is an exact copy of the other except for the presence of the first item, appears to result in an invalid distance matrix:
Error log:
This also appears to occur when the first and second items are swapped: