Add another test for --exclude in nix search

This commit is contained in:
Fishhh 2022-06-20 18:29:18 +02:00
parent 4ade8a5f25
commit df21173b70
No known key found for this signature in database
GPG Key ID: FDB7055C732D177D

View File

@ -43,3 +43,4 @@ e=$'\x1b' # grep doesn't support \e, \033 or even \x1b
(( $(nix search -f search.nix foo --exclude 'foo|bar' | grep -Ec 'foo|bar') == 0 ))
(( $(nix search -f search.nix foo -e foo --exclude bar | grep -Ec 'foo|bar') == 0 ))
[[ $(nix search -f search.nix -e bar --json | jq -c 'keys') == '["foo","hello"]' ]]