Skip to content

Commit 8783d76

Browse files
committed
Fix CI on map columns
1 parent d244eaf commit 8783d76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/elixir/test/elixir/kernel/errors_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ defmodule Kernel.ErrorsTest do
185185

186186
test "literal on map and struct" do
187187
assert_compile_error(
188-
["nofile:1:11", "expected key-value pairs in a map, got: put_in(foo.bar.baz, nil)"],
188+
["nofile:1:10", "expected key-value pairs in a map, got: put_in(foo.bar.baz, nil)"],
189189
~c"foo = 1; %{put_in(foo.bar.baz, nil), foo}"
190190
)
191191
end
@@ -992,11 +992,11 @@ defmodule Kernel.ErrorsTest do
992992
end
993993

994994
test "duplicate map keys" do
995-
assert_compile_error(["nofile:1:4", "key :a will be overridden in map"], """
995+
assert_compile_error(["nofile:1:3", "key :a will be overridden in map"], """
996996
%{a: :b, a: :c} = %{a: :c}
997997
""")
998998

999-
assert_compile_error(["nofile:1:4", "key :a will be overridden in map"], """
999+
assert_compile_error(["nofile:1:3", "key :a will be overridden in map"], """
10001000
%{a: :b, a: :c, a: :d} = %{a: :c}
10011001
""")
10021002
end

0 commit comments

Comments
 (0)