Inconsistent diff highlighting in ExUnit
Closed this issue · 4 comments
fuelen commented
Elixir and Erlang/OTP versions
Elixir 1.18.3 (compiled with Erlang/OTP 27)
Operating system
Linux
Current behavior
But if args are swapped, then the diff is completely different:

Expected behavior
assert [1, 2, 3] == [1, 4, 2, 3]should have highlighted only the element 4, similarly to
assert [1, 4, 2, 3] == [1, 2, 3]but using a different color (green).
josevalim commented
Yes, it looks like a bug indeed. Especially considering this:
String.myers_difference "123", "1423"
[eq: "1", ins: "4", eq: "23"]
sabiwara commented
sabiwara commented
josevalim commented
Perfect. Unlikely to have a new v1.18, so v1.19 it is.

