Skip to content

Commit

Permalink
Make issue assertions consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
NJichev committed May 2, 2024
1 parent 450f9e9 commit 636cd9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions test/credo/check/refactor/io_puts_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ defmodule Credo.Check.Refactor.IoPutsTest do
"""
|> to_source_file
|> run_check(@described_check)
|> assert_issues(fn [one, two] ->
|> assert_issues(fn [two, one] ->
assert one.line_no == 3
assert one.column == 26
assert one.column == 5
assert two.line_no == 3
assert two.column == 5
assert two.column == 26
end)
end

Expand Down
6 changes: 3 additions & 3 deletions test/credo/check/warning/dbg_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ defmodule Credo.Check.Warning.DbgTest do
"""
|> to_source_file
|> run_check(@described_check)
|> assert_issues(fn [one, two] ->
|> assert_issues(fn [two, one] ->
assert one.line_no == 3
assert one.column == 23
assert one.column == 5
assert two.line_no == 3
assert two.column == 5
assert two.column == 23
end)
end

Expand Down
6 changes: 3 additions & 3 deletions test/credo/check/warning/iex_pry_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ defmodule Credo.Check.Warning.IExPryTest do
"""
|> to_source_file
|> run_check(@described_check)
|> assert_issues(fn [one, two] ->
|> assert_issues(fn [two, one] ->
assert one.line_no == 3
assert one.column == 16
assert one.column == 5
assert two.line_no == 3
assert two.column == 5
assert two.column == 16
end)
end
end
6 changes: 3 additions & 3 deletions test/credo/check/warning/mix_env_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ defmodule Credo.Check.Warning.MixEnvTest do
"""
|> to_source_file
|> run_check(@described_check)
|> assert_issues(fn [one, two] ->
|> assert_issues(fn [two, one] ->
assert one.line_no == 3
assert one.column == 16
assert one.column == 5
assert two.line_no == 3
assert two.column == 5
assert two.column == 16
end)
end

Expand Down

0 comments on commit 636cd9d

Please sign in to comment.