dift icon indicating copy to clipboard operation
dift copied to clipboard

Incorrect move pos detection

Open Freak613 opened this issue 6 years ago • 1 comments

I have a case for a list of 10 elements, swapping list[1] and list[8] to each other

var tmp = list[1]
list[1] = list[8]
list[8] = tmp

Library incorrectly detects everything between 1 and 8 idx as moved and produces 8 MOVE effects, with prev = next for [2-7] elements. Elements in between has the same indices and it should produce UPDATE for them.

Freak613 avatar Oct 27 '18 10:10 Freak613

when i fuzzed dift, i also saw many correctness issues. kinda made me question its claims, especially

dift has not just extensive tests but exhaustive tests

leeoniya avatar Oct 27 '18 13:10 leeoniya