mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Switch functions tests from abbr to vared
abbr was a random function that was tested by this check, but we no longer have an abbr function so switch to a new one.
This commit is contained in:
parent
d2daa921e9
commit
5523eb36db
1 changed files with 8 additions and 8 deletions
|
@ -24,23 +24,23 @@ functions -D f2
|
|||
# ==========
|
||||
# Verify that `functions --details` works as expected when given the name of a
|
||||
# function that could be autoloaded but isn't currently loaded.
|
||||
set x (functions -D abbr)
|
||||
set x (functions -D vared)
|
||||
if test (count $x) -ne 1
|
||||
or not string match -q '*/share/functions/abbr.fish' "$x"
|
||||
echo "Unexpected output for 'functions -D abbr': $x" >&2
|
||||
or not string match -q '*/share/functions/vared.fish' "$x"
|
||||
echo "Unexpected output for 'functions -D vared': $x" >&2
|
||||
end
|
||||
|
||||
# ==========
|
||||
# Verify that `functions --verbose --details` works as expected when given the name of a
|
||||
# function that was autoloaded.
|
||||
set x (functions -v -D abbr)
|
||||
set x (functions -v -D vared)
|
||||
if test (count $x) -ne 5
|
||||
or not string match -q '*/share/functions/abbr.fish' $x[1]
|
||||
or not string match -q '*/share/functions/vared.fish' $x[1]
|
||||
or test $x[2] != autoloaded
|
||||
or test $x[3] != 1
|
||||
or test $x[3] != 6
|
||||
or test $x[4] != scope-shadowing
|
||||
or test $x[5] != 'Manage abbreviations'
|
||||
echo "Unexpected output for 'functions -v -D abbr': $x" >&2
|
||||
or test $x[5] != 'Edit variable value'
|
||||
echo "Unexpected output for 'functions -v -D vared': $x" >&2
|
||||
end
|
||||
|
||||
# ==========
|
||||
|
|
Loading…
Reference in a new issue