Closed taufek closed 5 years ago
In documentation it stated use_lcs: false should behave like below:
use_lcs: false
a = {x: [0, 1, 2]} b = {x: [0, 2, 2, 3]} diff = HashDiff.diff(a, b, :use_lcs => false) diff.should == [["~", "x[1]", 1, 2], ["+", "x[3]", 3]]
But it got below instead for diff
diff
[["-", "x[1]", 1], ["+", "x[1]", 2], ["+", "x[3]", 3]]
Found the issue. I was using hashdiff@0.3.5. Fixed the issue by upgraded to version 0.3.8.
In documentation it stated
use_lcs: false
should behave like below:But it got below instead for
diff