From f6e8ceafa68adcdd1f3683beaabff31d55c4d58e Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Wed, 18 Apr 2018 21:45:46 +0200 Subject: [PATCH] add tests for multi search --- tests/search.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/search.sh b/tests/search.sh index d83427247..0b26a1251 100644 --- a/tests/search.sh +++ b/tests/search.sh @@ -29,6 +29,11 @@ clearCache # Check search that matches nothing (( $(nix search nosuchpackageexists | wc -l) == 0 )) +# Search for multiple arguments +(( $(nix search hello empty | wc -l) == 5 )) + +# Multiple arguments will not exist +(( $(nix search hello broken | wc -l) == 0 )) ## Search expressions