From a54bb8dc14528c5cc37ffca35c1981089ada499d Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 29 Dec 2023 16:26:39 -0800 Subject: [PATCH] Clean up tests/checks/bind.fish This had some unnecessary bits and a CHECKERR was in a very confusing place. --- tests/checks/bind.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/checks/bind.fish b/tests/checks/bind.fish index b85165ad8..486f2e4a2 100644 --- a/tests/checks/bind.fish +++ b/tests/checks/bind.fish @@ -3,14 +3,13 @@ # invalid flags, mode names, etc. are caught as well as to verify that valid # ones are allowed. -# Verify that an invalid bind mode is rejected. >&2 +# Verify that an invalid bind mode is rejected. bind -m 'bad bind mode' \cX true # CHECKERR: bind: bad bind mode: invalid mode name. See `help identifiers` -# Verify that an invalid bind mode target is rejected. >&2 +# Verify that an invalid bind mode target is rejected. bind -M bind-mode \cX true # CHECKERR: bind: bind-mode: invalid mode name. See `help identifiers` -# CHECKERR: bind: No binding found for sequence '\t' # This should succeed and result in a success, zero, status. bind -M bind_mode \cX true @@ -108,8 +107,9 @@ bind | string match -v '*backward-delete-char' bind --erase \t bind \t bind \t 'echo wurst' +# CHECK: bind --preset \t complete bind --erase --user --preset \t bind \t -# CHECK: bind --preset \t complete +# CHECKERR: bind: No binding found for sequence '\t' exit 0