mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Clean up tests/checks/bind.fish
This had some unnecessary bits and a CHECKERR was in a very confusing place.
This commit is contained in:
parent
7bd8328243
commit
a54bb8dc14
@ -3,14 +3,13 @@
|
|||||||
# invalid flags, mode names, etc. are caught as well as to verify that valid
|
# invalid flags, mode names, etc. are caught as well as to verify that valid
|
||||||
# ones are allowed.
|
# 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
|
bind -m 'bad bind mode' \cX true
|
||||||
# CHECKERR: bind: bad bind mode: invalid mode name. See `help identifiers`
|
# 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
|
bind -M bind-mode \cX true
|
||||||
# CHECKERR: bind: bind-mode: invalid mode name. See `help identifiers`
|
# 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.
|
# This should succeed and result in a success, zero, status.
|
||||||
bind -M bind_mode \cX true
|
bind -M bind_mode \cX true
|
||||||
@ -108,8 +107,9 @@ bind | string match -v '*backward-delete-char'
|
|||||||
bind --erase \t
|
bind --erase \t
|
||||||
bind \t
|
bind \t
|
||||||
bind \t 'echo wurst'
|
bind \t 'echo wurst'
|
||||||
|
# CHECK: bind --preset \t complete
|
||||||
bind --erase --user --preset \t
|
bind --erase --user --preset \t
|
||||||
bind \t
|
bind \t
|
||||||
# CHECK: bind --preset \t complete
|
# CHECKERR: bind: No binding found for sequence '\t'
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user