Skip to content

Commit

Permalink
Use division by zero to show exception
Browse files Browse the repository at this point in the history
Closes #14111.
  • Loading branch information
josevalim committed Dec 24, 2024
1 parent f9f61bb commit 9df0fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ex_unit/lib/ex_unit/assertions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ defmodule ExUnit.Assertions do
## Examples
assert_raise ArithmeticError, "bad argument in arithmetic expression", fn ->
1 + "test"
1 / 0
end
assert_raise RuntimeError, ~r/^today's lucky number is 0\.\d+!$/, fn ->
Expand Down

0 comments on commit 9df0fe5

Please sign in to comment.