Skip to content

Commit 636cd9d

Browse files
committed
Make issue assertions consistent
1 parent 450f9e9 commit 636cd9d

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

test/credo/check/refactor/io_puts_test.exs

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ defmodule Credo.Check.Refactor.IoPutsTest do
4747
"""
4848
|> to_source_file
4949
|> run_check(@described_check)
50-
|> assert_issues(fn [one, two] ->
50+
|> assert_issues(fn [two, one] ->
5151
assert one.line_no == 3
52-
assert one.column == 26
52+
assert one.column == 5
5353
assert two.line_no == 3
54-
assert two.column == 5
54+
assert two.column == 26
5555
end)
5656
end
5757

test/credo/check/warning/dbg_test.exs

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ defmodule Credo.Check.Warning.DbgTest do
8181
"""
8282
|> to_source_file
8383
|> run_check(@described_check)
84-
|> assert_issues(fn [one, two] ->
84+
|> assert_issues(fn [two, one] ->
8585
assert one.line_no == 3
86-
assert one.column == 23
86+
assert one.column == 5
8787
assert two.line_no == 3
88-
assert two.column == 5
88+
assert two.column == 23
8989
end)
9090
end
9191

test/credo/check/warning/iex_pry_test.exs

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ defmodule Credo.Check.Warning.IExPryTest do
5151
"""
5252
|> to_source_file
5353
|> run_check(@described_check)
54-
|> assert_issues(fn [one, two] ->
54+
|> assert_issues(fn [two, one] ->
5555
assert one.line_no == 3
56-
assert one.column == 16
56+
assert one.column == 5
5757
assert two.line_no == 3
58-
assert two.column == 5
58+
assert two.column == 16
5959
end)
6060
end
6161
end

test/credo/check/warning/mix_env_test.exs

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ defmodule Credo.Check.Warning.MixEnvTest do
138138
"""
139139
|> to_source_file
140140
|> run_check(@described_check)
141-
|> assert_issues(fn [one, two] ->
141+
|> assert_issues(fn [two, one] ->
142142
assert one.line_no == 3
143-
assert one.column == 16
143+
assert one.column == 5
144144
assert two.line_no == 3
145-
assert two.column == 5
145+
assert two.column == 16
146146
end)
147147
end
148148

0 commit comments

Comments
 (0)