mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
fix search test
This commit is contained in:
parent
ee50c7d033
commit
06eac000db
1 changed files with 3 additions and 7 deletions
|
@ -17,15 +17,11 @@ clearCache
|
|||
# Multiple arguments will not exist
|
||||
(( $(nix search -f search.nix hello broken | wc -l) == 0 ))
|
||||
|
||||
# No regex should return an error
|
||||
(( $(nix search -f search.nix '' | wc -l) == 0 ))
|
||||
|
||||
## Search expressions
|
||||
|
||||
# Check that empty search string matches all
|
||||
nix search -f search.nix '' ^ | grepQuiet foo
|
||||
nix search -f search.nix '' ^ | grepQuiet bar
|
||||
nix search -f search.nix '' ^ | grepQuiet hello
|
||||
nix search -f search.nix ^ | grepQuiet foo
|
||||
nix search -f search.nix ^ | grepQuiet bar
|
||||
nix search -f search.nix ^ | grepQuiet hello
|
||||
|
||||
## Tests for multiple regex/match highlighting
|
||||
|
||||
|
|
Loading…
Reference in a new issue