We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 870d28f commit b8a9dc6Copy full SHA for b8a9dc6
1 file changed
lib/ex_unit/lib/ex_unit/assertions.ex
@@ -308,11 +308,10 @@ defmodule ExUnit.Assertions do
308
message = unquote(message)
309
310
if ExUnit.Assertions.__equal__?(left, right) do
311
- ExUnit.Assertions.assert(false,
+ raise ExUnit.AssertionError,
312
left: left,
313
expr: expr,
314
message: message <> ", both sides are exactly equal"
315
- )
316
else
317
ExUnit.Assertions.assert(unquote(call),
318
0 commit comments