mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18: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
|
||||
assert_raise FunctionClauseError, fn ->
|
||||
Enum.chunk([1,2,3], 0) == []
|
||||
Enum.chunk([1,2,3], 0)
|
||||
end
|
||||
```
|
||||
|
||||
@@ -19,7 +19,7 @@ the type of exception and the resulting message.
|
||||
|
||||
```elixir
|
||||
assert_raise FunctionClauseError, ~r/^no function clause matching/, fn ->
|
||||
Enum.chunk([1,2,3], 0) == []
|
||||
Enum.chunk([1,2,3], 0)
|
||||
end
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user