Skip to content

Commit

Permalink
tests: Improve tests by using $unused_highlight.
Browse files Browse the repository at this point in the history
The default for [redirection] is 'none', so it wasn't actually being tested.
  • Loading branch information
danielshahaf committed Nov 29, 2015
1 parent 09c4114 commit 46cd970
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions highlighters/main/test-data/sudo-redirection.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------

ZSH_HIGHLIGHT_STYLES[redirection]=$unused_highlight
BUFFER='sudo -u >/tmp otheruser ls; sudo ls; sudo -i ls'

expected_region_highlight=(
Expand Down
1 change: 1 addition & 0 deletions highlighters/main/test-data/sudo-redirection2.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------

ZSH_HIGHLIGHT_STYLES[redirection]=$unused_highlight
BUFFER='sudo >/tmp -u otheruser ls'

expected_region_highlight=(
Expand Down

0 comments on commit 46cd970

Please sign in to comment.