Skip to content

Commit

Permalink
fix tests on some otp versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Sep 26, 2023
1 parent 2c4b352 commit 75ff0dd
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions test/elixir_sense/providers/suggestion/complete_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2021,20 +2021,24 @@ defmodule ElixirSense.Providers.Suggestion.CompleteTest do
end

test "provide doc and specs for erlang functions with args from typespec" do

Check failure on line 2023 in test/elixir_sense/providers/suggestion/complete_test.exs

View workflow job for this annotation

GitHub Actions / mix test (Elixir 1.13.x | Erlang/OTP 22.x)

test provide doc and specs for erlang functions with args from typespec (ElixirSense.Providers.Suggestion.CompleteTest)

Check failure on line 2023 in test/elixir_sense/providers/suggestion/complete_test.exs

View workflow job for this annotation

GitHub Actions / mix test windows (Elixir 1.13.x | Erlang/OTP 22.x)

test provide doc and specs for erlang functions with args from typespec (ElixirSense.Providers.Suggestion.CompleteTest)
assert [
%{
name: "handle_call",
args_list: ["call", "from", "state"]
},
%{
name: "handle_cast",
args_list: ["tuple", "state"]
},
%{
name: "handle_info",
args_list: ["term", "state"]
}
] = expand(~c":pg.handle_")
if String.to_integer(System.otp_release()) >= 26 do
assert [
%{
name: "handle_call",
args_list: ["call", "from", "state"]
},
%{
name: "handle_cast",
args_list: ["tuple", "state"]
},
%{
name: "handle_info",
args_list: ["term", "state"]
}
] = expand(~c":pg.handle_")
else
assert [_, _, _] = expand(~c":pg.handle_")
end
end

test "complete after ! operator" do
Expand Down

0 comments on commit 75ff0dd

Please sign in to comment.