Skip to content

Inconsistent diff highlighting in ExUnit #14661

@fuelen

Description

@fuelen

Elixir and Erlang/OTP versions

Elixir 1.18.3 (compiled with Erlang/OTP 27)

Operating system

Linux

Current behavior

This works fine:
Image

But if args are swapped, then the diff is completely different:
Image

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions