From 5523eb36dbfd2b943af197a3a6e9545592b01c05 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 3 Apr 2022 12:37:29 -0700 Subject: [PATCH] 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. --- tests/checks/functions.fish | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/checks/functions.fish b/tests/checks/functions.fish index 2734513b1..7021ea0fe 100644 --- a/tests/checks/functions.fish +++ b/tests/checks/functions.fish @@ -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 # ==========