File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
apps/elixir_ls_utils/test Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -470,18 +470,20 @@ defmodule ElixirLS.Utils.CompletionEngineTest do
470
470
assert [ ] == expand ( ~c" ~r" )
471
471
end
472
472
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
+ }
482
483
483
- assert [ % { name: "&12" , type: :variable } ] =
484
- expand ( ~c" &1" , env )
484
+ assert [ % { name: "&12" , type: :variable } ] =
485
+ expand ( ~c" &1" , env )
486
+ end
485
487
end
486
488
487
489
test "function completion using a variable bound to a module" do
You can’t perform that action at this time.
0 commit comments