witchcrafters / type_class

(Semi-)principled type classes for Elixir
https://hex.pm/packages/type_class
MIT License
140 stars 16 forks source link

Use ExUnit.Assertions for evalutating the comparisons #13

Closed alfert closed 6 years ago

alfert commented 6 years ago

When equals fails, nobody knows which of the currently three branches failed and which values differed. The assertion macros form ExUnit have exactly this capability and using them reveals what is going wrong.

expede commented 6 years ago

Awesome; thanks!