Skip to content

Commit 7e97fec

Browse files
committed
fix test
1 parent aa3fc40 commit 7e97fec

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

apps/elixir_ls_utils/test/complete_test.exs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -470,18 +470,20 @@ defmodule ElixirLS.Utils.CompletionEngineTest do
470470
assert [] == expand(~c"~r")
471471
end
472472

473-
test "function completion using a capture arg" do
474-
env = %Env{
475-
vars: [
476-
%VarInfo{
477-
name: :"&12",
478-
version: 1
479-
}
480-
]
481-
}
473+
if Version.match?(System.version(), ">= 1.18.0") do
474+
test "function completion using a capture arg" do
475+
env = %Env{
476+
vars: [
477+
%VarInfo{
478+
name: :"&12",
479+
version: 1
480+
}
481+
]
482+
}
482483

483-
assert [%{name: "&12", type: :variable}] =
484-
expand(~c"&1", env)
484+
assert [%{name: "&12", type: :variable}] =
485+
expand(~c"&1", env)
486+
end
485487
end
486488

487489
test "function completion using a variable bound to a module" do

0 commit comments

Comments
 (0)