Skip to content

Commit 3c659df

Browse files
committed
assume 1.14+
1 parent ceddf1a commit 3c659df

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

test/elixir_sense/core/compiler_test.exs

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -584,18 +584,16 @@ defmodule ElixirSense.Core.CompilerTest do
584584
""")
585585
end
586586

587-
if Version.match?(System.version(), ">= 1.14.0") do
588-
test "expands for" do
589-
assert_expansion("""
590-
for i <- [1, 2, 3] do
591-
i
592-
end
593-
""")
594-
595-
assert_expansion("""
596-
for i <- [1, 2, 3], j <- [1, 2], true, into: %{}, do: {i, j}
597-
""")
587+
test "expands for" do
588+
assert_expansion("""
589+
for i <- [1, 2, 3] do
590+
i
598591
end
592+
""")
593+
594+
assert_expansion("""
595+
for i <- [1, 2, 3], j <- [1, 2], true, into: %{}, do: {i, j}
596+
""")
599597
end
600598

601599
if Version.match?(System.version(), ">= 1.15.0") do
@@ -616,29 +614,27 @@ defmodule ElixirSense.Core.CompilerTest do
616614
end
617615
end
618616

619-
if Version.match?(System.version(), ">= 1.14.0") do
620-
test "expands for in block" do
621-
assert_expansion("""
622-
for i <- [1, 2, 3] do
623-
i
624-
end
625-
:ok
626-
""")
617+
test "expands for in block" do
618+
assert_expansion("""
619+
for i <- [1, 2, 3] do
620+
i
621+
end
622+
:ok
623+
""")
627624

628-
assert_expansion("""
629-
for i <- [1, 2, 3], uniq: true do
630-
i
631-
end
632-
:ok
633-
""")
625+
assert_expansion("""
626+
for i <- [1, 2, 3], uniq: true do
627+
i
628+
end
629+
:ok
630+
""")
634631

635-
assert_expansion("""
636-
_ = for i <- [1, 2, 3] do
637-
i
638-
end
639-
:ok
640-
""")
632+
assert_expansion("""
633+
_ = for i <- [1, 2, 3] do
634+
i
641635
end
636+
:ok
637+
""")
642638
end
643639

644640
test "expands with" do

0 commit comments

Comments
 (0)