mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 09:06:15 +02:00
tests/search.sh: simplify, don't rely on consistent ordering
This commit is contained in:
parent
009cf9cd23
commit
c577186f59
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue