Skip to content

Commit

Permalink
exclude tests on < 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Sep 28, 2024
1 parent 534cb0f commit 26d4e87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/elixir_sense/core/compiler_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ defmodule ElixirSense.Core.CompilerTest do
""")
end

if Version.match?(System.version(), ">= 1.14.0") do
test "expands for" do
assert_expansion("""
for i <- [1, 2, 3] do
Expand All @@ -568,6 +569,7 @@ defmodule ElixirSense.Core.CompilerTest do
for i <- [1, 2, 3], j <- [1, 2], true, into: %{}, do: {i, j}
""")
end
end

if Version.match?(System.version(), ">= 1.15.0") do
test "expands for with bitstring generator" do
Expand All @@ -587,6 +589,7 @@ defmodule ElixirSense.Core.CompilerTest do
end
end

if Version.match?(System.version(), ">= 1.14.0") do
test "expands for in block" do
assert_expansion("""
for i <- [1, 2, 3] do
Expand All @@ -609,6 +612,7 @@ defmodule ElixirSense.Core.CompilerTest do
:ok
""")
end
end

test "expands with" do
assert_expansion("""
Expand Down

0 comments on commit 26d4e87

Please sign in to comment.