Skip to content

Commit

Permalink
Fix example for ex_unit assertion (elixir-lang#6608)
Browse files Browse the repository at this point in the history
This code example used variables `one` and `two` that weren't previously initialized, and don't match the assertion result message.
  • Loading branch information
jaimeiniesta authored and josevalim committed Sep 27, 2017
1 parent f78b68d commit 226838d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ex_unit/lib/ex_unit/assertions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ defmodule ExUnit.Assertions do
Similarly, if a match expression is given, it will report
any failure in terms of that match. Given
assert [one] = [two]
assert [1] = [2]
you'll see:
match (=) failed
code: [one] = [two]
code: [1] = [2]
right: [2]
Keep in mind that `assert` does not change its semantics
Expand Down

0 comments on commit 226838d

Please sign in to comment.