Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Jan 30, 2025
1 parent aa3fc40 commit 7e97fec
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions apps/elixir_ls_utils/test/complete_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -470,18 +470,20 @@ defmodule ElixirLS.Utils.CompletionEngineTest do
assert [] == expand(~c"~r")
end

test "function completion using a capture arg" do
env = %Env{
vars: [
%VarInfo{
name: :"&12",
version: 1
}
]
}
if Version.match?(System.version(), ">= 1.18.0") do
test "function completion using a capture arg" do
env = %Env{
vars: [
%VarInfo{
name: :"&12",
version: 1
}
]
}

assert [%{name: "&12", type: :variable}] =
expand(~c"&1", env)
assert [%{name: "&12", type: :variable}] =
expand(~c"&1", env)
end
end

test "function completion using a variable bound to a module" do
Expand Down

0 comments on commit 7e97fec

Please sign in to comment.