forked from lix-project/lix
tests/search.sh: simplify, don't rely on consistent ordering
This commit is contained in:
parent
009cf9cd23
commit
c577186f59
|
@ -33,10 +33,6 @@ clearCache
|
||||||
## Search expressions
|
## Search expressions
|
||||||
|
|
||||||
# Check that empty search string matches all
|
# Check that empty search string matches all
|
||||||
EMPTY=$(nix search)
|
nix search|grep -q foo
|
||||||
BOL=$(nix search "^")
|
nix search|grep -q bar
|
||||||
ALL=$(nix search ".*")
|
nix search|grep -q hello
|
||||||
|
|
||||||
diff <(printf "%s" $EMPTY) <(printf "%s" $BOL)
|
|
||||||
# "ALL" highlights differently, not sure preferred behavior
|
|
||||||
# diff <(printf "%s" $EMPTY) <(printf "%s" $ALL)
|
|
||||||
|
|
Loading…
Reference in a new issue