mirror of
https://github.com/jbranchaud/til
synced 2026-01-04 15:48:01 +00:00
Remove a superfluous comparison
This commit is contained in:
@@ -10,7 +10,7 @@ Using `assert_raise/2` looks something like this:
|
|||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
assert_raise FunctionClauseError, fn ->
|
assert_raise FunctionClauseError, fn ->
|
||||||
Enum.chunk([1,2,3], 0) == []
|
Enum.chunk([1,2,3], 0)
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ the type of exception and the resulting message.
|
|||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
assert_raise FunctionClauseError, ~r/^no function clause matching/, fn ->
|
assert_raise FunctionClauseError, ~r/^no function clause matching/, fn ->
|
||||||
Enum.chunk([1,2,3], 0) == []
|
Enum.chunk([1,2,3], 0)
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user