Skip to content

Commit 546a0db

Browse files
committed
Use division by zero to show exception
Closes #14111.
1 parent 463f1aa commit 546a0db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/ex_unit/lib/ex_unit/assertions.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ defmodule ExUnit.Assertions do
786786
## Examples
787787
788788
assert_raise ArithmeticError, "bad argument in arithmetic expression", fn ->
789-
1 + "test"
789+
1 / 0
790790
end
791791
792792
assert_raise RuntimeError, ~r/^today's lucky number is 0\.\d+!$/, fn ->

0 commit comments

Comments
 (0)