mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Add regression test for command completion descriptions
This commit is contained in:
parent
0adebdfbc4
commit
dd7d537d90
1 changed files with 6 additions and 0 deletions
|
@ -603,3 +603,9 @@ complete -C'complete_long_option -ao'
|
|||
# CHECK: -an-old-option
|
||||
# But only if the user typed a dash
|
||||
complete -C'complete_long_option lo'
|
||||
|
||||
# Check that descriptions are correctly generated for commands.
|
||||
# We expect to find at least one `wh...` command with a manpage/apropos description, such as
|
||||
# `whoami`, `whereis`, or `which`. Filter out keywords & default/generic completions to test.
|
||||
test (count (complete -C"wh" | string match -rv "\tcommand|^while")) -gt 0 && echo "found" || echo "fail"
|
||||
# CHECK: found
|
||||
|
|
Loading…
Reference in a new issue