We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6efcf commit bb9ddb3Copy full SHA for bb9ddb3
lib/elixir/test/elixir/fixtures/dialyzer/assertions.ex
@@ -21,6 +21,10 @@ defmodule Dialyzer.Assertions do
21
refute unknown_type_falsy()
22
end
23
24
+ def refute_with_operator(log) do
25
+ refute log == "failure"
26
+ end
27
+
28
defp known_type_truthy, do: :ok
29
defp known_type_falsy, do: nil
30
lib/ex_unit/lib/ex_unit/assertions.ex
@@ -229,7 +229,7 @@ defmodule ExUnit.Assertions do
229
230
defmacro refute(assertion) do
231
if translated = translate_assertion(:refute, assertion, __CALLER__) do
232
- {:!, [], [translated]}
+ {:!, [generated: true], [translated]}
233
else
234
{args, value} = extract_args(assertion, __CALLER__)
235
0 commit comments