Now Power Assert is available on Elixir
Power Assert provides descriptive assertion messages like the following.
1) test Enum.at should return the element at the given index (PowerAssertTest)
array |> Enum.at(index) == two
| | | |
| | | 2
| | 2
| 3
[1, 2, 3]
It’s easy to use your project. You only replace ExUnit.Case
into PowerAssert
.
This commit shows how to use PowerAssert
.
Enjoy!
Read next Using ranch, the high performance acceptor pool from Elixir