main: Use longer alias name in tests

This commit is contained in:
Matthew Martin 2019-07-11 21:33:37 -05:00
parent 9cc0060334
commit 369620dd2d
2 changed files with 13 additions and 13 deletions

View File

@ -28,14 +28,14 @@
# vim: ft=zsh sw=2 ts=2 et # vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
alias sdu='sudo -u' alias sudo_u='sudo -u'
sudo(){} sudo(){}
BUFFER='sdu phy1729 echo foo' BUFFER='sudo_u phy1729 echo foo'
expected_region_highlight=( expected_region_highlight=(
'1 3 alias' # sdu '1 6 alias' # sudo_u
'5 11 default' # phy1729 '8 14 default' # phy1729
'13 16 commmand "issue #540"' # echo (not builtin) '17 19 commmand "issue #540"' # echo (not builtin)
'18 20 default' # foo '21 23 default' # foo
) )

View File

@ -28,15 +28,15 @@
# vim: ft=zsh sw=2 ts=2 et # vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
alias sdb='sudo -b' alias sudo_b='sudo -b'
alias sbu='sdb -u' alias sudo_b_u='sudo_b -u'
sudo(){} sudo(){}
BUFFER='sbu phy1729 echo foo' BUFFER='sudo_b_u phy1729 echo foo'
expected_region_highlight=( expected_region_highlight=(
'1 3 alias' # sbu '1 8 alias' # sudo_b_u
'5 11 default' # phy1729 '10 16 default' # phy1729
'13 16 commmand "issue #540"' # echo (not builtin) '18 21 commmand "issue #540"' # echo (not builtin)
'18 20 default' # foo '23 25 default' # foo
) )