-
``` elixir
fact "regex are matched against argument parameters" do
provided [Flip.flop(%r/mooo/) |> true] do
Flip.flop("this is a mooo thing") => true
end
end
```
Use hamcrest with meck match…
-
``` elixir
1234 |> equals 1234
```
If the right hand side of a |> in the test is not a function default it to equality.
``` elixir
1234 |> 1234
#Also potentially then for negation:
1234 |> ! 1234
…
-
This fails:
``` elixir
true |> true
```
As it tries to call true.true.
Ensure default equality works for booleans.