From 06eac000db910dd07c935b2dd279b92b21b61571 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 25 Mar 2024 18:46:03 +0100 Subject: [PATCH] fix search test --- tests/functional/search.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/functional/search.sh b/tests/functional/search.sh index 43d5f54c9..d328ec2ed 100644 --- a/tests/functional/search.sh +++ b/tests/functional/search.sh @@ -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