Skip to content

Commit

Permalink
tests/search.sh: simplify, don't rely on consistent ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzWill committed Mar 1, 2018
1 parent 009cf9c commit c577186
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/search.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ clearCache
## Search expressions

# Check that empty search string matches all
EMPTY=$(nix search)
BOL=$(nix search "^")
ALL=$(nix search ".*")

diff <(printf "%s" $EMPTY) <(printf "%s" $BOL)
# "ALL" highlights differently, not sure preferred behavior
# diff <(printf "%s" $EMPTY) <(printf "%s" $ALL)
nix search|grep -q foo
nix search|grep -q bar
nix search|grep -q hello

0 comments on commit c577186

Please sign in to comment.