Skip to content

Stray comma in map diffs #4977

@michalmuskala

Description

@michalmuskala

Environment

  • Elixir version (elixir -v): master
  • Operating system: OSX

Current behavior

With an assertion like assert %{a: 1} == %{b: 1} ExUnit gives following diff (with proper colours):

Assertion with == failed
code:  %{a: 1} == %{b: 1}
left:  %{a: 1}
right: %{, b: 1}

screenshot 2016-07-10 01 09 45

### Expected behavior

The initial comma in right should be ommited

Assertion with == failed
code:  %{a: 1} == %{b: 1}
left:  %{a: 1}
right: %{b: 1}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions