Skip to content

Commit

Permalink
Fix type warning on 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrudel committed Jan 30, 2025
1 parent e6621d8 commit f8a4efc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/machete/assertion_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ defmodule AssertionTest do
end

test "ExUnit assertions fail with useful exceptions" do
e = get_assertion_error(fn -> assert true == false end)
e = get_assertion_error(fn -> assert false end)

assert e
~> %ExUnit.AssertionError{
args: :ex_unit_no_meaningful_value,
context: :==,
doctest: :ex_unit_no_meaningful_value,
expr: {:assert, [line: integer()], [{:==, [line: integer()], [true, false]}]},
left: true,
message: "Assertion with == failed",
right: false
expr: {:assert, [], [false]},
left: :ex_unit_no_meaningful_value,
message: "Expected truthy, got false",
right: :ex_unit_no_meaningful_value
}
end

Expand Down

0 comments on commit f8a4efc

Please sign in to comment.