summaryrefslogtreecommitdiff
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorfrazze-jobb <frazze@erlang.org>2023-02-27 13:15:03 +0100
committerfrazze-jobb <frazze@erlang.org>2023-02-27 15:20:17 +0100
commit99c1493bb8aebc5b7c28fb63651dc9c4201aa102 (patch)
treeda9f8caa9314279724b6b974cb1da723b375a8cb /lib/stdlib/test
parentbdc34f03eed61129efba3e2792e0f5e71b4545f1 (diff)
downloaderlang-99c1493bb8aebc5b7c28fb63651dc9c4201aa102.tar.gz
Fixes bug in shell completion
previously multi arity functions with a zero arity variant omitted the zero arity function.
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/edlin_expand_SUITE.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/stdlib/test/edlin_expand_SUITE.erl b/lib/stdlib/test/edlin_expand_SUITE.erl
index 90a5735055..206a8b7246 100644
--- a/lib/stdlib/test/edlin_expand_SUITE.erl
+++ b/lib/stdlib/test/edlin_expand_SUITE.erl
@@ -261,7 +261,11 @@ function_parameter_completion(Config) ->
elems:=[#{title:="types",
elems:=[{"integer()",[]}],
options:=[{hide,title}]}],
- options:=[{highlight_param,1}]}],
+ options:=[{highlight_param,1}]},
+ #{title:=
+ "complete_function_parameter:multi_arity_fun()",
+ options:=[],
+ elems:=[")"]}],
options:=[highlight_all]}]} = do_expand("complete_function_parameter:multi_arity_fun("),
{no, [], [#{elems:=[#{elems:=[#{elems:=[{"true",[]},{"false",[]}]}]}]}]} = do_expand("complete_function_parameter:multi_arity_fun(1,"),
{no,[],