Skip to content

Commit

Permalink
Fix testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Oct 21, 2021
1 parent ae61200 commit a0fa304
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/els_lsp/test/els_hover_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ local_fun_expression(Config) ->
?assert(maps:is_key(contents, Result)),
Contents = maps:get(contents, Result),
Value = <<"## local_call/2\n\n"
"---\n\n"
"```erlang\n\n"
" local_call(Arg1, Arg2) \n\n"
"```\n\n"
Expand All @@ -142,6 +143,7 @@ remote_fun_expression(Config) ->
?assert(maps:is_key(contents, Result)),
Contents = maps:get(contents, Result),
Value = <<"## hover_docs:multiple_clauses/1\n\n"
"---\n\n"
"```erlang\n\n"
" multiple_clauses(L) when is_list(L)\n\n"
" multiple_clauses(#{data := Data}) \n\n"
Expand Down
2 changes: 2 additions & 0 deletions apps/els_lsp/test/els_parser_macros_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ wild_attrbibute_macro(_Config) ->
type_name_macro(_Config) ->
Text1 = "-type ?M() :: integer() | t().",
?assertMatch({ok, [#{kind := type_application, id := {t, 0}},
#{kind := type_application, id := {erlang, integer, 0}},
#{kind := macro, id := 'M'}]},
els_parser:parse(Text1)),

Expand Down Expand Up @@ -151,6 +152,7 @@ record_def_field_macro(_Config) ->
%% typed record field
Text2 = "-record(rec, {?M :: integer()}).",
?assertMatch({ok, [#{kind := record, id := rec},
#{kind := type_application, id := {erlang, integer, 0}},
#{kind := macro, id := 'M'}]},
els_parser:parse(Text2)),
ok.
Expand Down

0 comments on commit a0fa304

Please sign in to comment.